介绍
java.util.function.Predicate
- 接口声明
@FunctionalInterface
public interface Predicate<T>
API
static
- isEqual
<T> Predicate<T> isEqual(Object targetRef)
- 比较相等,类似
Objects.equals
- not
<T> Predicate<T> not(Predicate<? super T> target)
- 非
public
- test
boolean test(T t);
default
- and
Predicate<T> and(Predicate<? super T> other)
- 与
- or
Predicate<T> or(Predicate<? super T> other)
- 或
- negate
Predicate<T> negate()
- 非
- Predicate 20230529 function java utilpredicate 20230529 function java 20230529 function java util predicate consumer function supplier 函数predicate function consumer functions utilities dealing ranges annotatedelement 20230529 reflect java java8-predicate invocationhandler 20230529 reflect java 替代品java8-predicate predicate策略 collectors stream java util