Package org.aoju.bus.core.lang.function
Interface XBiPredicate<T,U>
- Type Parameters:
T- 第一个参数的类型U- 第二个参数的类型
- All Superinterfaces:
BiPredicate<T,,U> Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
表示两个参数(布尔值函数)。这就是谓词的二元专门化
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
Modifier and TypeMethodDescriptiondefault XBiPredicate<T, U> and(XBiPredicate<? super T, ? super U> other) 返回一个组合断言,该断言表示此断言与另一个断言的短路逻辑与 在评估组合谓词时,如果此断言为false,则不评估other断言default XBiPredicate<T, U> negate()返回表示此断言的逻辑否定的断言default XBiPredicate<T, U> or(XBiPredicate<? super T, ? super U> other) 返回一个组合断言,该断言表示此谓词与另一个断言的短路逻辑或 在评估组合断言时,如果此断言为true,则不评估other断言default boolean根据给定的参数评估boolean根据给定的参数评估Methods inherited from interface java.util.function.BiPredicate
and, or
-
Method Details
-
testing
-
test
-
and
返回一个组合断言,该断言表示此断言与另一个断言的短路逻辑与 在评估组合谓词时,如果此断言为false,则不评估other断言- Parameters:
other- 将与该断言进行逻辑与运算的断言- Returns:
- 一个组合断言,表示此断言与
other断言的短路逻辑与 - Throws:
NullPointerException- if other is null
-
negate
返回表示此断言的逻辑否定的断言- Specified by:
negatein interfaceBiPredicate<T,U> - Returns:
- 表示此断言的逻辑否定的断言
-
or
返回一个组合断言,该断言表示此谓词与另一个断言的短路逻辑或 在评估组合断言时,如果此断言为true,则不评估other断言- Parameters:
other- 将与此断言进行逻辑或的断言- Returns:
- 表示此断言与
other断言的短路逻辑 OR 的组合断言 - Throws:
NullPointerException- 如果其他为空
-