T
- 参数1的类型U
- 参数2的类型@FunctionalInterface public interface SerBiPredicate<T,U> extends BiPredicate<T,U>, Serializable
Modifier and Type | Method and Description |
---|---|
default SerBiPredicate<T,U> |
and(SerBiPredicate<? super T,? super U> other)
Returns a composed predicate that represents a short-circuiting logical
AND of this predicate and another.
|
default SerBiPredicate<T,U> |
negate()
Returns a predicate that represents the logical negation of this
predicate.
|
default SerBiPredicate<T,U> |
or(SerBiPredicate<? super T,? super U> other)
Returns a composed predicate that represents a short-circuiting logical
OR of this predicate and another.
|
default boolean |
test(T t,
U u)
Evaluates this predicate on the given arguments.
|
boolean |
testing(T t,
U u)
Evaluates this predicate on the given arguments.
|
and, or
default boolean test(T t, U u)
test
in interface BiPredicate<T,U>
t
- the first input argumentu
- the second input argumenttrue
if the input arguments match the predicate,
otherwise false
default SerBiPredicate<T,U> and(SerBiPredicate<? super T,? super U> other)
false
, then the other
predicate is not evaluated.
Any exception 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 SerBiPredicate<T,U> negate()
negate
in interface BiPredicate<T,U>
default SerBiPredicate<T,U> or(SerBiPredicate<? super T,? super U> other)
true
, then the other
predicate is not evaluated.
Any exception 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 © 2025. All rights reserved.