接口 Predicates


  • public interface Predicates
    The utilities class for Java Predicate
    从以下版本开始:
    1.0.0
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      static java.util.function.Predicate[] EMPTY_PREDICATE_ARRAY  
    • 方法概要

      静态方法 
      修饰符和类型 方法 说明
      static <T> java.util.function.Predicate<T> alwaysFalse()
      Predicate always return false
      static <T> java.util.function.Predicate<T> alwaysTrue()
      Predicate always return true
      static <T> java.util.function.Predicate<? super T> and​(java.util.function.Predicate<? super T>... predicates)
      a composed predicate that represents a short-circuiting logical AND of predicates
      static <T> java.util.function.Predicate<T>[] emptyArray()  
      static <T> java.util.function.Predicate<? super T> or​(java.util.function.Predicate<? super T>... predicates)
      a composed predicate that represents a short-circuiting logical OR of predicates
    • 字段详细资料

      • EMPTY_PREDICATE_ARRAY

        static final java.util.function.Predicate[] EMPTY_PREDICATE_ARRAY
    • 方法详细资料

      • emptyArray

        static <T> java.util.function.Predicate<T>[] emptyArray()
      • alwaysTrue

        static <T> java.util.function.Predicate<T> alwaysTrue()
        Predicate always return true
        类型参数:
        T - the type to test
        返回:
        true
      • alwaysFalse

        static <T> java.util.function.Predicate<T> alwaysFalse()
        Predicate always return false
        类型参数:
        T - the type to test
        返回:
        false
      • and

        static <T> java.util.function.Predicate<? super T> and​(java.util.function.Predicate<? super T>... predicates)
        a composed predicate that represents a short-circuiting logical AND of predicates
        类型参数:
        T - the type to test
        参数:
        predicates - predicates
        返回:
        non-null
      • or

        static <T> java.util.function.Predicate<? super T> or​(java.util.function.Predicate<? super T>... predicates)
        a composed predicate that represents a short-circuiting logical OR of predicates
        类型参数:
        T - the detected type
        参数:
        predicates - predicates
        返回:
        non-null