@FunctionalInterface
public interface Matcher1<T>
| Modifier and Type | Method and Description |
|---|---|
static <T> Matcher1<T> |
allOf(Matcher1<T>... matchers) |
default Matcher1<T> |
and(Matcher1<T> other) |
static <T> Matcher1<T> |
anyOf(Matcher1<T>... matchers) |
static <T> Matcher1<T> |
instanceOf(java.lang.Class<?> type) |
static <T> Matcher1<T> |
is(T other) |
static <T> Matcher1<T> |
isIn(T... values) |
static <T> Matcher1<T> |
isNotNull() |
static <T> Matcher1<T> |
isNull() |
boolean |
match(T target) |
default Matcher1<T> |
negate() |
static <T> Matcher1<T> |
not(Matcher1<T> matcher) |
default Matcher1<T> |
or(Matcher1<T> other) |
static <T> Matcher1<T> |
otherwise() |
boolean match(T target)
static <T> Matcher1<T> instanceOf(java.lang.Class<?> type)
static <T> Matcher1<T> is(T other)
@SafeVarargs static <T> Matcher1<T> isIn(T... values)
static <T> Matcher1<T> isNull()
static <T> Matcher1<T> isNotNull()
static <T> Matcher1<T> otherwise()