Interface CheckedConsumer<S,E extends Exception>
- Type Parameters:
S
- source-typeE
- exception that can be thrown during apply
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Consumes a value and throws an exception.
- Author:
- Owen Feehan
-
Method Summary
-
Method Details
-
accept
LikeConsumer.accept(T)
but throws an exception.- Parameters:
in
- the argument passed into the operation.- Throws:
E
- if the operation does not succeed.
-