Interface Predicate<T,E extends Exception>

Type Parameters:
T - The type of object tested.
E - The type of exception thrown.
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Predicate<T,E extends Exception>
A Predicate functional interface which can thrown a checked Exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    test(T t)
    Test a value.
  • Method Details

    • test

      boolean test(T t) throws E
      Test a value.
      Parameters:
      t - The value.
      Returns:
      The result.
      Throws:
      E - An exception.