Interface ThrowableIntConsumer
-
- All Superinterfaces:
java.util.function.IntConsumer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThrowableIntConsumer extends java.util.function.IntConsumerRepresents an operation that accepts a singleint-valued argument and returns no result. This is the primitive type specialization ofThrowableConsumerforint. Unlike most other functional interfaces,IntConsumeris expected to operate via side-effects.Permits checked exceptions unlike
IntConsumerThis is a functional interface whose functional method is
accept(int).- See Also:
ThrowableConsumer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidaccept(int value)Performs this operation on the given argument.voidacceptUnsafe(int value)Performs this operation on the given argument.
-
-
-
Method Detail
-
acceptUnsafe
void acceptUnsafe(int value) throws java.lang.ThrowablePerforms this operation on the given argument.- Parameters:
value- the input argument- Throws:
java.lang.Throwable- occurred during processing
-
accept
default void accept(int value)
Performs this operation on the given argument.- Specified by:
acceptin interfacejava.util.function.IntConsumer- Parameters:
value- the input argument
-
-