Interface ThrowingConsumer<T,E extends Throwable>

Type Parameters:
T - the type accepted by this consumer
E - the type of exception thrown from the supplier
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 ThrowingConsumer<T,E extends Throwable>
Consumer with a generic exception.
Since:
4.8.0
Author:
Jonas Konrad
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T t)
    Consume the value.
  • Method Details

    • accept

      void accept(T t) throws E
      Consume the value.
      Parameters:
      t - The value
      Throws:
      E - The generic exception