Interface Matcher<T>
- All Known Implementing Classes:
AbstractMatcher
public interface Matcher<T>
Returns
true or false for a given input.-
Method Summary
Modifier and Type Method Description Matcher<T>and(Matcher<? super T> other)Returns a new matcher which returnstrueif both this and the given matcher returntrue.booleanmatches(T t)Returnstrueif this matchest,falseotherwise.Matcher<T>or(Matcher<? super T> other)Returns a new matcher which returnstrueif either this or the given matcher returntrue.