Package com.globalmentor.io.function
Interface IOBiConsumer<T,U>
-
- Type Parameters:
T
- the type of the first argument to the operationU
- the type of the second argument to the operation
- 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 IOBiConsumer<T,U>
Represents an operation that accepts two input arguments and returns no result. This is the two-arity specialization ofConsumer
. Unlike most other functional interfaces,BiConsumer
is expected to operate via side-effects.This interface is similar to
BiConsumer
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(T t, U u)
This method is the same asBiConsumer.accept(Object, Object)
, but with a support forIOException
.default IOBiConsumer<T,U>
andThen(IOBiConsumer<? super T,? super U> after)
This method is the same asBiConsumer.andThen(BiConsumer)
, but with a support forIOException
.
-
-
-
Method Detail
-
accept
void accept(T t, U u) throws java.io.IOException
This method is the same as
BiConsumer.accept(Object, Object)
, but with a support forIOException
.- Parameters:
t
- The first input.u
- The second input.- Throws:
java.io.IOException
- if there is an I/O error performing the operation.
-
andThen
default IOBiConsumer<T,U> andThen(@Nonnull IOBiConsumer<? super T,? super U> after) throws java.io.IOException
This method is the same as
BiConsumer.andThen(BiConsumer)
, but with a support forIOException
.- Parameters:
after
- The operation to be performed after this operation.- Returns:
- A composed
IOBiConsumer
that performs this operation followed by theafter
operation in sequence. - Throws:
java.io.IOException
- if there is an I/O error performing the operation.
-
-