public interface Matcher<T>
true
or false
for a given input.Modifier and Type | Method and Description |
---|---|
Matcher<T> |
and(Matcher<? super T> other)
Returns a new matcher which returns
true if both this and the given matcher return
true . |
boolean |
matches(T t)
Returns
true if this matches t , false otherwise. |
Matcher<T> |
or(Matcher<? super T> other)
Returns a new matcher which returns
true if either this or the given matcher return
true . |