Interface ThrowingConsumer<T,X extends Throwable>
- Type Parameters:
T- the type of the input to the operationX- the type of the exception thrown by the function
- All Superinterfaces:
Consumer<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An extension of
Consumer allowing throwing calls in its body.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidvoidacceptChecked(T t) Performs this operation on the given argument.