接口 Predicate<T>


public interface Predicate<T>
Predicate functional interface from JDK 8.
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    test(T t)
    Evaluates this predicate on the given argument.
  • 方法详细资料

    • test

      boolean test(T t)
      Evaluates this predicate on the given argument.
      参数:
      t - the input argument
      返回:
      true if the input argument matches the predicate, otherwise false