T - The type of the first argument to the function.U - The type of the second argument to the function.R - The type of the result of the function.@FunctionalInterface public interface IOBiFunction<T,U,R>
IOException throwing equivalent of BiFunction.| Modifier and Type | Method and Description |
|---|---|
default <V> IOBiFunction<T,U,V> |
andThen(IOFunction<? super R,? extends V> after)
Returns a composed function that first applies this function to its input, and then applies the
after function to the result. |
R |
apply(T t,
U u)
Applies this function to the given arguments.
|
static <T,U,R> IOBiFunction<T,U,R> |
checked(BiFunction<? super T,? super U,? extends R> function)
Returns a function that applies the
function function to its input, and unwraps any UncheckedIOException that is thrown by
throwing its cause. |
static <T,U,R> BiFunction<T,U,R> |
unchecked(IOBiFunction<? super T,? super U,? extends R> function)
Returns a function that applies the
function function to its input, and wraps any IOException that is thrown in an
UncheckedIOException. |
R apply(T t, U u) throws IOException
t - The first function argument.u - The second function argument.IOException - If an I/O error occurs.default <V> IOBiFunction<T,U,V> andThen(IOFunction<? super R,? extends V> after)
after function to the result.
If evaluation of either function throws an exception, it is relayed to the caller of the composed function.V - The type of output of the after function, and of the composed function.after - The function to apply after this function is applied.after functionNullPointerException - If after is null.static <T,U,R> BiFunction<T,U,R> unchecked(IOBiFunction<? super T,? super U,? extends R> function)
function function to its input, and wraps any IOException that is thrown in an
UncheckedIOException.T - The type of the first argument to the function.U - The type of the second argument to the function.R - The type of the result of the function.function - The function to apply when the returned function is applied.function function to its input, and wraps any IOException that is thrown in an
UncheckedIOException.NullPointerException - If function is null.static <T,U,R> IOBiFunction<T,U,R> checked(BiFunction<? super T,? super U,? extends R> function)
function function to its input, and unwraps any UncheckedIOException that is thrown by
throwing its cause.T - The type of the first argument to the function.U - The type of the second argument to the function.R - The type of the result of the function.function - The function to apply when the returned function is applied.function function to its input, and unwraps any UncheckedIOException that is thrown.NullPointerException - If function is null.Copyright © 2017–2020. All rights reserved.