T - the type of the input to the predicate@FunctionalInterface public interface IPredicate<T> extends Predicate<T>, Serializable
This is a functional interface whose
functional method is Predicate.test(Object).
| Modifier and Type | Method and Description |
|---|---|
static <DATATYPE> IPredicate<DATATYPE> |
all() |
static <DATATYPE> IPredicate<DATATYPE> |
and(Predicate<? super DATATYPE> aFirst,
Predicate<? super DATATYPE> aSecond) |
default IPredicate<T> |
and(Predicate<? super T> other)
Returns a composed predicate that represents a short-circuiting logical AND
of this predicate and another.
|
static <T> IPredicate<T> |
isEqual(Object aCmpTo)
Returns a predicate that tests if two arguments are equal according to
Objects.equals(Object, Object). |
static <DATATYPE> IPredicate<DATATYPE> |
isNull() |
default IPredicate<T> |
negate()
Returns a predicate that represents the logical negation of this predicate.
|
static <DATATYPE> IPredicate<DATATYPE> |
none() |
static <DATATYPE> IPredicate<DATATYPE> |
notNull() |
static <DATATYPE> IPredicate<DATATYPE> |
or(Predicate<? super DATATYPE> aFirst,
Predicate<? super DATATYPE> aSecond) |
default IPredicate<T> |
or(Predicate<? super T> other)
Returns a composed predicate that represents a short-circuiting logical OR
of this predicate and another.
|
@Nonnull default IPredicate<T> and(@Nullable Predicate<? super T> other)
false, then the other predicate is not
evaluated.
Any exceptions thrown during evaluation of either predicate are relayed to
the caller; if evaluation of this predicate throws an exception, the
other predicate will not be evaluated.
@Nonnull default IPredicate<T> or(@Nullable Predicate<? super T> other)
true, then the other predicate is not
evaluated.
Any exceptions thrown during evaluation of either predicate are relayed to
the caller; if evaluation of this predicate throws an exception, the
other predicate will not be evaluated.
@Nonnull default IPredicate<T> negate()
@Nonnull static <DATATYPE> IPredicate<DATATYPE> all()
@Nonnull static <DATATYPE> IPredicate<DATATYPE> none()
@Nonnull static <DATATYPE> IPredicate<DATATYPE> notNull()
@Nonnull static <DATATYPE> IPredicate<DATATYPE> isNull()
@Nullable static <DATATYPE> IPredicate<DATATYPE> and(@Nullable Predicate<? super DATATYPE> aFirst, @Nullable Predicate<? super DATATYPE> aSecond)
@Nullable static <DATATYPE> IPredicate<DATATYPE> or(@Nullable Predicate<? super DATATYPE> aFirst, @Nullable Predicate<? super DATATYPE> aSecond)
@Nonnull static <T> IPredicate<T> isEqual(@Nullable Object aCmpTo)
Objects.equals(Object, Object).isEqual in interface Predicate<T>T - the type of arguments to the predicateaCmpTo - the object reference with which to compare for equality, which may
be nullObjects.equals(Object, Object)Copyright © 2014–2017 Philip Helger. All rights reserved.