Interface ConsumerWithThrowable<T,​E extends Throwable>

  • Type Parameters:
    T - the generic type
    E - the element type that can be any Throwable
    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 ConsumerWithThrowable<T,​E extends Throwable>
    Consumer Functional interface which can throw Exception.
    Author:
    Loganathan Sekar
    • Method Detail

      • accept

        void accept​(T t)
             throws E extends Throwable
        Expression that accepts the given arguments.
        Parameters:
        t - the first function argument
        Throws:
        E - the exception
        E extends Throwable