T
- the type of the first argument to the operationU
- the type of the second argument to the operationV
- the type of the third argument to the operation@FunctionalInterface public interface IOTriConsumer<T,U,V>
BiConsumer
but throws IOException
.BiConsumer
Modifier and Type | Method and Description |
---|---|
void |
accept(T t,
U u,
V v)
Performs this operation on the given arguments.
|
default IOTriConsumer<T,U,V> |
andThen(IOTriConsumer<? super T,? super U,? super V> after)
Creates a composed
IOTriConsumer that performs, in sequence, this operation followed by the after
operation. |
static <T,U,V> IOTriConsumer<T,U,V> |
noop()
Returns the no-op singleton.
|
static <T,U,V> IOTriConsumer<T,U,V> noop()
T
- the type of the first argument to the operationU
- the type of the second argument to the operationV
- the type of the third argument to the operationvoid accept(T t, U u, V v) throws IOException
t
- the first input argumentu
- the second input argumentv
- the second third argumentIOException
- if an I/O error occurs.default IOTriConsumer<T,U,V> andThen(IOTriConsumer<? super T,? super U,? super V> after)
IOTriConsumer
that performs, in sequence, this operation followed by the after
operation. If performing either operation throws an exception, it is relayed to the caller of the composed operation.
If performing this operation throws an exception, the after
operation will not be performed.after
- the operation to perform after this operationIOTriConsumer
that performs in sequence this operation followed by the after
operationNullPointerException
- if after
is nullCopyright © 2002–2023 The Apache Software Foundation. All rights reserved.