接口 Predicates


  • public interface Predicates
    The utilities class for Java Predicate
    从以下版本开始:
    2.7.5
    • 字段详细资料

      • EMPTY_ARRAY

        static final Predicate[] EMPTY_ARRAY
    • 方法详细资料

      • alwaysTrue

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

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

        static <T> Predicate<T> and​(Predicate<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> Predicate<T> or​(Predicate<T>... predicates)
        a composed predicate that represents a short-circuiting logical OR of predicates
        类型参数:
        T - the detected type
        参数:
        predicates - predicates
        返回:
        non-null