public abstract class AbstractMatcher<T> extends java.lang.Object implements Matcher<T>
and()
and or()
.Modifier and Type | Class and Description |
---|---|
private static class |
AbstractMatcher.AndMatcher<T> |
private static class |
AbstractMatcher.OrMatcher<T> |
Constructor and Description |
---|
AbstractMatcher() |
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 . |
Matcher<T> |
or(Matcher<? super T> other)
Returns a new matcher which returns
true if either this or the
given matcher return true . |