Interface ThrowingConsumer<T,​E extends java.lang.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 ThrowingConsumer<T,​E extends java.lang.Throwable>
    Functional interface that mirrors the Consumer interface, but allows for an exception to be thrown.
    Author:
    oyving
    • Method Detail

      • accept

        void accept​(T input)
             throws E extends java.lang.Throwable
        Throws:
        E extends java.lang.Throwable