T
- The type of the first argument to the function.U
- The type of the second argument to the function.@FunctionalInterface public interface ToLongIOBiFunction<T,U>
IOException
throwing equivalent of ToLongBiFunction
.Modifier and Type | Method and Description |
---|---|
long |
applyAsLong(T t,
U u)
Applies this function to the given arguments.
|
static <T,U> ToLongIOBiFunction<T,U> |
checked(ToLongBiFunction<? super T,? super U> 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> ToLongBiFunction<T,U> |
unchecked(ToLongIOBiFunction<? super T,? super U> function)
Returns a function that applies the
function function to its input, and wraps any IOException that is thrown in an
UncheckedIOException . |
long applyAsLong(T t, U u) throws IOException
t
- The first function argument.u
- The second function argument.IOException
- If an I/O error occurs.static <T,U> ToLongBiFunction<T,U> unchecked(ToLongIOBiFunction<? super T,? super U> 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.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> ToLongIOBiFunction<T,U> checked(ToLongBiFunction<? super T,? super U> 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.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.