Package io.blt.util.functional
Interface ThrowingConsumer<T,E extends Throwable>
- Type Parameters:
T- the type of argument consumed by this consumerE- the type ofThrowablethat may be thrown by this consumer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents an operation that accepts a single input argument that may throw.
Like Consumer but able to throw an exception
- See Also:
-
Method Summary
-
Method Details
-
accept
Performs this operation on the given argument.- Parameters:
t- the input argument- Throws:
E-Throwablethat may be thrown- See Also:
-