R
- The type of the result of the function.@FunctionalInterface public interface LongIOFunction<R>
IOException
throwing equivalent of LongFunction
.Modifier and Type | Method and Description |
---|---|
R |
apply(long value)
Applies this function to the given argument.
|
static <R> LongIOFunction<R> |
checked(LongFunction<? 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 <R> LongFunction<R> |
unchecked(LongIOFunction<? 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(long value) throws IOException
value
- The function argument.IOException
- If an I/O error occurs.static <R> LongFunction<R> unchecked(LongIOFunction<? extends R> function)
function
function to its input, and wraps any IOException
that is thrown in an
UncheckedIOException
.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 <R> LongIOFunction<R> checked(LongFunction<? extends R> function)
function
function to its input, and unwraps any UncheckedIOException
that is thrown by
throwing its cause
.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.