Interface LoggerConsumer<E extends Exception>

  • Type Parameters:
    E - The type of the exception that may be thrown.
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @ConsumerType
    @FunctionalInterface
    public interface LoggerConsumer<E extends Exception>
    An operation that accepts a Logger argument and produces no result.

    This is a functional interface and can be used as the assignment target for a lambda expression or method reference.

    Since:
    1.4
    • Method Detail

      • accept

        void accept​(Logger l)
             throws E extends Exception
        Perform this operation on the specified Logger.
        Parameters:
        l - The Logger input to this operation.
        Throws:
        E - An exception thrown by the operation.
        E extends Exception