Interface CheckedIntConsumer<E extends Exception>
- Type Parameters:
E
- exception that can be thrown duringaccept
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Consumes an
int
and throws an exception.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(int in) LikeIntConsumer.accept(int)
but throws an exception.
-
Method Details
-
accept
void accept(int in) throws E LikeIntConsumer.accept(int)
but throws an exception.- Parameters:
in
- the argument passed into the operation.- Throws:
E
- if the operation does not succeed.
-