public interface NodeMatcherFactory
NodeMatchers.| Modifier and Type | Method and Description |
|---|---|
<T extends Node> |
equals(T other,
@NonNull NodeEqualityPredicate equalityPredicate)
Gets a
NodeMatcher which matches nodes which are
equal to the given other node
according to the NodeEqualityPredicate. |
@NonNull NodeMatcher<Node> |
key(@NonNull String key)
Gets a
NodeMatcher which matches nodes with the same key. |
<T extends Node> |
key(T node)
Gets a
NodeMatcher which matches nodes with the same key. |
@NonNull NodeMatcher<Node> |
keyStartsWith(@NonNull String startingWith)
Gets a
NodeMatcher which matches nodes with a key starting
with the given string. |
@NonNull NodeMatcher<MetaNode> |
metaKey(@NonNull String metaKey)
|
<T extends Node> |
type(NodeType<? extends T> type)
|
@NonNull NodeMatcher<Node> key(@NonNull String key)
NodeMatcher which matches nodes with the same key.
The String.equalsIgnoreCase(String) method is used to test key equality.
Prefer using the NodeMatcher.key(String) accessor.
key - the key<T extends Node> @NonNull NodeMatcher<T> key(T node)
NodeMatcher which matches nodes with the same key.
The String.equalsIgnoreCase(String) method is used to test key equality.
Prefer using the NodeMatcher.key(Node) accessor.
T - the node typenode - the node to use for the key@NonNull NodeMatcher<Node> keyStartsWith(@NonNull String startingWith)
NodeMatcher which matches nodes with a key starting
with the given string.
Prefer using the NodeMatcher.keyStartsWith(String) accessor.
startingWith - the string to match<T extends Node> @NonNull NodeMatcher<T> equals(T other, @NonNull NodeEqualityPredicate equalityPredicate)
NodeMatcher which matches nodes which are
equal to the given other node
according to the NodeEqualityPredicate.
Prefer using the NodeMatcher.equals(Node, NodeEqualityPredicate) accessor.
T - the node typeother - the other node to test againstequalityPredicate - the equality predicate@NonNull NodeMatcher<MetaNode> metaKey(@NonNull String metaKey)
NodeMatcher which matches MetaNodes with the same
meta key.
The String.equalsIgnoreCase(String) method is used to test key equality.
Prefer using the NodeMatcher.metaKey(String) accessor.
metaKey - the meta key<T extends Node> @NonNull NodeMatcher<T> type(NodeType<? extends T> type)
NodeMatcher which matches Nodes with the same
type as the given NodeType.
NodeType.PERMISSION, NodeType.CHAT_META and
NodeType.META_OR_CHAT_META are not supported by this method.
Prefer using the NodeMatcher.type(NodeType) accessor.
T - the node typetype - the node type