public enum StandardNodeEquality extends Enum<StandardNodeEquality> implements NodeEqualityPredicate
NodeEqualityPredicates.| Enum Constant and Description |
|---|
EXACT
Represents an exact match.
|
IGNORE_EXPIRY_TIME
All attributes must match, except for the
expiry time, which is ignored. |
IGNORE_EXPIRY_TIME_AND_VALUE
All attributes must match, except for
value and the
expiry time, which are ignored. |
IGNORE_VALUE
All attributes must match, except for
value, which is ignored. |
IGNORE_VALUE_OR_IF_TEMPORARY
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
areEqual(@NonNull Node o1,
@NonNull Node o2)
Returns if the two nodes are equal
|
static StandardNodeEquality |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardNodeEquality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardNodeEquality EXACT
All attributes of the nodes must match for them to be considered equal.
public static final StandardNodeEquality IGNORE_VALUE
value, which is ignored.public static final StandardNodeEquality IGNORE_EXPIRY_TIME
expiry time, which is ignored.
Note that with this setting, whether a node is temporary or not is still considered.
public static final StandardNodeEquality IGNORE_EXPIRY_TIME_AND_VALUE
value and the
expiry time, which are ignored.public static final StandardNodeEquality IGNORE_VALUE_OR_IF_TEMPORARY
public static StandardNodeEquality[] values()
for (StandardNodeEquality c : StandardNodeEquality.values()) System.out.println(c);
public static StandardNodeEquality valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean areEqual(@NonNull Node o1, @NonNull Node o2)
NodeEqualityPredicateareEqual in interface NodeEqualityPredicateo1 - the first nodeo2 - the second node