T
- The type of the object argument to the operation.@FunctionalInterface public interface ObjIntIOConsumer<T>
int
-valued argument, and returns no result.
This is the IOException
throwing equivalent of ObjIntConsumer
.Modifier and Type | Method and Description |
---|---|
void |
accept(T t,
int value)
Performs this operation on the given arguments.
|
static <T> ObjIntIOConsumer<T> |
checked(ObjIntConsumer<? super T> operation)
Returns an
ObjIntIOConsumer that performs the operation operation, and unwraps any UncheckedIOException that is
thrown by throwing its cause . |
static <T> ObjIntConsumer<T> |
unchecked(ObjIntIOConsumer<? super T> operation)
Returns an
ObjIntConsumer that performs the operation operation, and wraps any IOException that is thrown in an
UncheckedIOException . |
void accept(T t, int value) throws IOException
t
- The first input argument.value
- The second input argument.IOException
- If an I/O error occurs.static <T> ObjIntConsumer<T> unchecked(ObjIntIOConsumer<? super T> operation)
ObjIntConsumer
that performs the operation
operation, and wraps any IOException
that is thrown in an
UncheckedIOException
.T
- The type of the object argument to the operation.operation
- The operation to perform when the returned operation is performed.ObjIntConsumer
that performs the operation
operation on its input, and wraps any IOException
that is thrown
in an UncheckedIOException
.NullPointerException
- If operation
is null
.static <T> ObjIntIOConsumer<T> checked(ObjIntConsumer<? super T> operation)
ObjIntIOConsumer
that performs the operation
operation, and unwraps any UncheckedIOException
that is
thrown by throwing its cause
.T
- The type of the input to the operation.operation
- The operation to perform when the returned operation is performed.ObjIntIOConsumer
that performs the operation
operation on its input, and unwraps any UncheckedIOException
that is thrown.NullPointerException
- If the given operation is null
.Copyright © 2017–2020. All rights reserved.