?? Predicate<T>

????:
T - The type of the predicate input.
????:
????????, ????? lambda ??????????????

@ConsumerType @FunctionalInterface public interface Predicate<T>
A predicate that accepts a single argument and produces a boolean result.

This is a functional interface and can be used as the assignment target for a lambda expression or method reference.

  • ????

    ??????
    ??
    ??
    boolean
    test(T t)
    Evaluates this predicate on the specified argument.
  • ??????

    • test

      boolean test(T t) throws Exception
      Evaluates this predicate on the specified argument.
      ??:
      t - The input to this predicate.
      ??:
      true if the specified argument is accepted by this predicate; false otherwise.
      ??:
      Exception - An exception thrown by the method.