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