20230529 java.util.function.Predicate
介绍
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()- 非
 
 
                    
                
                
            
        
浙公网安备 33010602011771号