@FunctionalInterface public interface NodeEqualityPredicate
Generally, individual instances of this interface should fulfil the same
requirements as the Object.equals(Object) contract.
Some standard implementations are provided by StandardNodeEquality.
| Modifier and Type | Method and Description |
|---|---|
boolean |
areEqual(@NonNull Node o1,
@NonNull Node o2)
Returns if the two nodes are equal.
|
boolean areEqual(@NonNull Node o1, @NonNull Node o2)
This method should avoid making calls to Node.equals(Node, NodeEqualityPredicate)
with this as the second argument, directly or otherwise.
o1 - the first nodeo2 - the second node