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 Detail

      • test

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