T
- The type of the object that is being matched.public interface ElementMatcher<T>
Predicate
s but compatible to Java 6 and Java 7 and represent
a functional interface. They can be chained by using instances of
ElementMatcher.Junction
.Modifier and Type | Interface and Description |
---|---|
static interface |
ElementMatcher.Junction<S>
A junctions allows to chain different
ElementMatcher s in a readable manner. |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(T target)
Matches a target against this element matcher.
|
boolean matches(@UnknownNull T target)
target
- The instance to be matched or null
.true
if the given element is matched by this matcher or false
otherwise.Copyright © 2014–2025. All rights reserved.