Interface CheckedConsumer<V,​E extends java.lang.Exception>

  • Type Parameters:
    V - input value type
    E - exception type 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 CheckedConsumer<V,​E extends java.lang.Exception>
    A Consumer that can throw exceptions.
    • Method Detail

      • accept

        void accept​(V value)
             throws E extends java.lang.Exception
        Throws:
        E extends java.lang.Exception