接口 Predicate<T>

所有超级接口:
java.util.function.Predicate<T>
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface Predicate<T> extends java.util.function.Predicate<T>
作者:
lingyi
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    apply(T input)
     
    boolean
    equals(Object object)
    Indicates whether another object is equal to this predicate.
    default boolean
    test(T input)
     

    从接口继承的方法 java.util.function.Predicate

    and, negate, or
  • 方法详细资料

    • apply

      boolean apply(T input)
    • equals

      boolean equals(Object object)
      Indicates whether another object is equal to this predicate.

      Most implementations will have no reason to override the behavior of Object.equals(java.lang.Object). However, an implementation may also choose to return true whenever object is a Predicate that it considers interchangeable with this one. "Interchangeable" typically means that this.apply(t) == that.apply(t) for all t of type T). Note that a false result from this method does not imply that the predicates are known not to be interchangeable.

      覆盖:
      equals 在类中 Object
    • test

      default boolean test(T input)
      指定者:
      test 在接口中 java.util.function.Predicate<T>