Interface FunctionalCheckedExceptionWrappers.ConsumerWithException<T>

  • Type Parameters:
    T - the type of the Consumer argument
    Enclosing class:
    FunctionalCheckedExceptionWrappers
    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 static interface FunctionalCheckedExceptionWrappers.ConsumerWithException<T>
    A variant of Consumer that might throw an Exception. This interface must not be directly used, it's defined to let the compiler infer functional equivalence.
    • Method Detail

      • accept

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