public interface Matcher<T>
| Modifier and Type | Method and Description |
|---|---|
default Matcher<T> |
and(Matcher<? super T> other)
Returns a composed matcher that represents a short-circuiting logical AND of this matcher and another.
|
boolean |
match(T element)
Evaluates this Matcher on the given element.
|
default Matcher<T> |
negate()
Returns a matcher that represents the logical negation of this matcher.
|
static <T> Matcher<T> |
not(Matcher<? super T> target)
Returns a matcher that is the negation of the supplied matcher.
|
default Matcher<T> |
or(Matcher<? super T> other)
Returns a composed matcher that represents a short-circuiting logical OR of this matcher and another.
|
boolean match(T element)
element - elementdefault Matcher<T> and(Matcher<? super T> other)
other - a matcher that will be logically-ANDed with this matcherdefault Matcher<T> or(Matcher<? super T> other)
other - a predicate that will be logically-ORed with this matcherdefault Matcher<T> negate()
static <T> Matcher<T> not(Matcher<? super T> target)
T - the type of arguments to the specified matchertarget - target – matcher to negateCopyright © 2023 The Apache Software Foundation. All rights reserved.