| Modifier and Type | Method and Description |
|---|---|
PredicateWrapper<IN> |
and(Predicate<? super IN> other)
Returns a composed predicate wrapper that represents a short-circuiting logical AND of this
predicate and another.
|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
hasStaticContext()
Checks if the predicates wrapped by this instance have a static context.
|
static <IN> PredicateWrapper<IN> |
isEqual(Object targetRef)
Returns a predicate wrapper testing for equality to the specified object.
The returned object will support concatenation and comparison. |
static <IN> PredicateWrapper<IN> |
isInstanceOf(Class<?> type)
Returns a predicate wrapper testing whether the passed inputs are instances of the specified
class.
The returned object will support concatenation and comparison. |
static <IN> PredicateWrapper<IN> |
isNull()
Returns a predicate wrapper returning true when the passed argument is null.
The returned object will support concatenation and comparison. |
static <IN> PredicateWrapper<IN> |
isSame(Object targetRef)
Returns a predicate wrapper testing for identity to the specified object.
The returned object will support concatenation and comparison. |
PredicateWrapper<IN> |
negate()
Returns a predicate wrapper that represents the logical negation of this predicate.
|
static <IN> PredicateWrapper<IN> |
negative()
Returns a predicate wrapper always returning the false.
The returned object will support concatenation and comparison. |
static <IN> PredicateWrapper<IN> |
notNull()
Returns a predicate wrapper returning true when the passed argument is not null.
The returned object will support concatenation and comparison. |
PredicateWrapper<IN> |
or(Predicate<? super IN> other)
Returns a composed predicate wrapper that represents a short-circuiting logical OR of this
predicate and another.
|
static <IN> PredicateWrapper<IN> |
positive()
Returns a predicate wrapper always returning the true.
The returned object will support concatenation and comparison. |
boolean |
test(IN in)
Evaluates this predicate on the given argument.
|
@NotNull public static <IN> PredicateWrapper<IN> isEqual(@Nullable Object targetRef)
IN - the input data type.targetRef - the target reference.@NotNull public static <IN> PredicateWrapper<IN> isInstanceOf(@NotNull Class<?> type)
IN - the input data type.type - the class type.@NotNull public static <IN> PredicateWrapper<IN> isNull()
IN - the input data type.@NotNull public static <IN> PredicateWrapper<IN> isSame(@Nullable Object targetRef)
IN - the input data type.targetRef - the target reference.@NotNull public static <IN> PredicateWrapper<IN> negative()
IN - the input data type.@NotNull public static <IN> PredicateWrapper<IN> notNull()
IN - the input data type.@NotNull public static <IN> PredicateWrapper<IN> positive()
IN - the input data type.@NotNull public PredicateWrapper<IN> and(@NotNull Predicate<? super IN> other)
other - a predicate that will be logically-ANDed with this predicate.public boolean hasStaticContext()
@NotNull public PredicateWrapper<IN> negate()
@NotNull public PredicateWrapper<IN> or(@NotNull Predicate<? super IN> other)
other - a predicate that will be logically-ORed with this predicate.