Interface ThrowCapableConsumer<T>

  • Type Parameters:
    T - The type of the argument accepted.
    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 ThrowCapableConsumer<T>
    An interface similar to Consumer, but allows for throwing checked exceptions.
    • Method Detail

      • accept

        void accept​(T value)
             throws java.lang.Exception
        Throws:
        java.lang.Exception