Interface ThrowableIntConsumer
- All Superinterfaces:
IntConsumer
- 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
int-valued argument and returns no result.
This is the primitive type specialization of ThrowableConsumer for int. Unlike
most other functional interfaces, IntConsumer is expected to operate via side-effects.
Permits checked exceptions unlike IntConsumer
This is a functional interface whose functional method is
accept(int).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaccept(int value) Performs this operation on the given argument.voidacceptUnsafe(int value) Performs this operation on the given argument.Methods inherited from interface java.util.function.IntConsumer
andThen
-
Method Details
-
acceptUnsafe
Performs this operation on the given argument.- Parameters:
value- the input argument- Throws:
Throwable- occurred during processing
-
accept
default void accept(int value) Performs this operation on the given argument.- Specified by:
acceptin interfaceIntConsumer- Parameters:
value- the input argument
-