Interface SpecificThrowingConsumer<E extends Throwable,T>
- Type Parameters:
E- The exception typeT- 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.
Similar to a
Consumer, except that the functional accept method is allowed to throw the specified exception.- Since:
- 2.11.0
-
Method Summary
-
Method Details
-
accept
Runs thisThrowingConsumer.- Parameters:
t- The input argument- Throws:
E- Any exception
-