@FunctionalInterface public interface DoubleToIntIOFunction
IOException
throwing equivalent of DoubleToIntFunction
.Modifier and Type | Method and Description |
---|---|
int |
applyAsInt(double value)
Applies this function to the given argument.
|
static DoubleToIntIOFunction |
checked(DoubleToIntFunction function)
Returns a function that applies the
function function to its input, and unwraps any UncheckedIOException that is thrown by
throwing its cause . |
static DoubleToIntFunction |
unchecked(DoubleToIntIOFunction function)
Returns a function that applies the
function function to its input, and wraps any IOException that is thrown in an
UncheckedIOException . |
int applyAsInt(double value) throws IOException
value
- The function argument.IOException
- If an I/O error occurs.static DoubleToIntFunction unchecked(DoubleToIntIOFunction function)
function
function to its input, and wraps any IOException
that is thrown in an
UncheckedIOException
.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 DoubleToIntIOFunction checked(DoubleToIntFunction function)
function
function to its input, and unwraps any UncheckedIOException
that is thrown by
throwing its cause
.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.