Interface ThrowingConsumer<T>
- Type Parameters:
T
- consumed type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Like
Consumer<T>
but allows checked exceptions.-
Method Summary
-
Method Details
-
accept
Performs the action.- Parameters:
t
- value- Throws:
Exception
- if any error occurs
-