@FunctionalInterface public interface SerPred<T> extends Predicate<T>, Serializable
Predicate| 限定符和类型 | 方法和说明 |
|---|---|
default SerPred<T> |
and(SerPred<? super T> other)
Returns a composed predicate that represents a short-circuiting logical
AND of this predicate and another.
|
static <T> SerPred<T> |
isEqual(Object... targetRef)
Returns a predicate that tests if two arguments are equal according
to
Objects.equals(Object, Object). |
static <T> SerPred<T> |
multiAnd(SerPred<T>... predicates)
multi
|
static <T> SerPred<T> |
multiOr(SerPred<T>... predicates)
multi
|
default SerPred<T> |
negate()
Returns a predicate that represents the logical negation of this
predicate.
|
default SerPred<T> |
or(SerPred<? super T> other)
Returns a composed predicate that represents a short-circuiting logical
OR of this predicate and another.
|
default boolean |
test(T t)
Evaluates this predicate on the given argument.
|
Boolean |
testing(T t)
Evaluates this predicate on the given argument.
|
default boolean test(T t)
@SafeVarargs static <T> SerPred<T> multiAnd(SerPred<T>... predicates)
T - 类型predicates - lambda@SafeVarargs static <T> SerPred<T> multiOr(SerPred<T>... predicates)
T - 类型predicates - lambdastatic <T> SerPred<T> isEqual(Object... targetRef)
Objects.equals(Object, Object).default SerPred<T> and(SerPred<? 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.
other - a predicate that will be logically-ANDed with this
predicateother predicateNullPointerException - if other is nulldefault SerPred<T> negate()
default SerPred<T> or(SerPred<? 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.
other - a predicate that will be logically-ORed with this
predicateother predicateNullPointerException - if other is nullCopyright © 2023 dromara. All rights reserved.