Interface SpecificThrowingConsumer<E extends Throwable,T>

Type Parameters:
E - The exception type
T - The input type
All Known Subinterfaces:
ThrowingConsumer<T>
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 SpecificThrowingConsumer<E extends Throwable,T>
Similar to a Consumer, except that the functional accept method is allowed to throw the specified exception.
Since:
2.11.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T t)
    Runs this ThrowingConsumer.
  • Method Details

    • accept

      void accept(T t) throws E
      Runs this ThrowingConsumer.
      Parameters:
      t - The input argument
      Throws:
      E - Any exception