| Modifier and Type | Method and Description |
|---|---|
static <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. |
static @NonNull NodeMatcher<Node> |
key(@NonNull String key)
Gets a
NodeMatcher which matches nodes with the same key. |
static <T extends Node> |
key(T node)
Gets a
NodeMatcher which matches nodes with the same key. |
static @NonNull NodeMatcher<Node> |
keyStartsWith(@NonNull String startingWith)
Gets a
NodeMatcher which matches nodes with a key starting
with the given string. |
static @NonNull NodeMatcher<MetaNode> |
metaKey(@NonNull MetaNode metaNode)
|
static @NonNull NodeMatcher<MetaNode> |
metaKey(@NonNull String metaKey)
|
boolean |
test(@NonNull Node node)
Tests to see if the given
Node matches. |
static <T extends Node> |
type(NodeType<? extends T> type)
|
static @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.
key - the keystatic <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.
T - the node typenode - the node to use for the keystatic @NonNull NodeMatcher<Node> keyStartsWith(@NonNull String startingWith)
NodeMatcher which matches nodes with a key starting
with the given string.startingWith - the string to matchstatic <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.T - the node typeother - the other node to test againstequalityPredicate - the equality predicatestatic @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.
metaKey - the meta keystatic @NonNull NodeMatcher<MetaNode> metaKey(@NonNull MetaNode metaNode)
NodeMatcher which matches MetaNodes with the same
meta key.
The String.equalsIgnoreCase(String) method is used to test key equality.
metaNode - the meta node to use for the meta keystatic <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.
T - the node typetype - the node type