Package com.globalmentor.io.function
Interface IOIntConsumer
-
- 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 IOIntConsumer
Represents an operation that accepts a singleint
-valued argument and returns no result. This is the primitive type specialization ofConsumer
forint
. Unlike most other functional interfaces,IntConsumer
is expected to operate via side-effects.This interface is similar to
IntConsumer
except that it is allowed to throw anIOException
.- Author:
- Magno N A Cruz
- See Also:
IOConsumer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
accept(int value)
This method is the same asIntConsumer.accept(int)
, but with a support forIOException
.default IOIntConsumer
andThen(IOIntConsumer after)
This method is the same asIntConsumer.andThen(IntConsumer)
, but with a support forIOException
.
-
-
-
Method Detail
-
accept
void accept(int value) throws java.io.IOException
This method is the same as
IntConsumer.accept(int)
, but with a support forIOException
.- Parameters:
value
- The input argument.- Throws:
java.io.IOException
- if there is an I/O error performing the operation.
-
andThen
default IOIntConsumer andThen(@Nonnull IOIntConsumer after) throws java.io.IOException
This method is the same as
IntConsumer.andThen(IntConsumer)
, but with a support forIOException
.- Parameters:
after
- The operation to perform after this operation.- Returns:
- A composed
IntConsumer
that performs this operation followed by theafter
operation in sequence. - Throws:
java.io.IOException
- if there is an I/O error performing the operation.
-
-