T - The type of the object argument to the operation.@FunctionalInterface public interface ObjLongIOConsumer<T>
long-valued argument, and returns no result.
This is the IOException throwing equivalent of ObjLongConsumer.| Modifier and Type | Method and Description |
|---|---|
void |
accept(T t,
long value)
Performs this operation on the given arguments.
|
static <T> ObjLongIOConsumer<T> |
checked(ObjLongConsumer<? super T> operation)
Returns an
ObjLongIOConsumer that performs the operation operation, and unwraps any UncheckedIOException that is
thrown by throwing its cause. |
static <T> ObjLongConsumer<T> |
unchecked(ObjLongIOConsumer<? super T> operation)
Returns an
ObjLongConsumer that performs the operation operation, and wraps any IOException that is thrown in an
UncheckedIOException. |
void accept(T t, long value) throws IOException
t - The first input argument.value - The second input argument.IOException - If an I/O error occurs.static <T> ObjLongConsumer<T> unchecked(ObjLongIOConsumer<? super T> operation)
ObjLongConsumer 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.ObjLongConsumer 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> ObjLongIOConsumer<T> checked(ObjLongConsumer<? super T> operation)
ObjLongIOConsumer 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.ObjLongIOConsumer 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.