?? LoggerConsumer<E extends Exception>

????:
E - The type of the exception that may be thrown.
????:
????????, ????? lambda ??????????????

@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.

???????:
1.4
  • ????

    ??????
    ??
    ??
    void
    Perform this operation on the specified Logger.
  • ??????

    • accept

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