@FunctionalInterface public interface DblToInt extends DblToIntE<RuntimeException>, DoubleToIntFunction
(double) -> int.| Modifier and Type | Method and Description |
|---|---|
default int |
applyAsInt(double d)
Allows
this to act as a DoubleToIntFunction. |
static NilToInt |
bind(DblToInt f,
double d)
Binds
(d) to f, returning a new function
of type () -> int. |
default NilToInt |
bind(double d)
Binds
(d) to this, returning a new function
of type () -> int. |
static <E extends Exception> |
unchecked(DblToIntE<E> f)
Returns a wrapped version of
f that wraps any checked Exception with a
RuntimeException. |
static <E extends Exception> |
unchecked(Function<? super E,RuntimeException> toRuntime,
DblToIntE<E> f)
Returns a wrapped version of
f that uses toRuntime to convert any checked
Exception to a RuntimeException. |
static <E extends IOException> |
uncheckedIO(DblToIntE<E> f)
|
static <E extends Exception> DblToInt unchecked(Function<? super E,RuntimeException> toRuntime, DblToIntE<E> f)
f that uses toRuntime to convert any checked
Exception to a RuntimeException.E - the Exception type that the operation may throwtoRuntime - if a checked exception is thrown from
DblToIntE.call(double), then this function
is called in in order to convert it to a RuntimeExceptionf - the operation to wrapf that does not throw checked exceptionsstatic <E extends Exception> DblToInt unchecked(DblToIntE<E> f)
f that wraps any checked Exception with a
RuntimeException.E - the Exception type that the operation may throwf - the operation to wrapf that does not throw checked exceptionsstatic <E extends IOException> DblToInt uncheckedIO(DblToIntE<E> f)
E - the Exception type that the operation may throwf - the operation to wrapf that throws UncheckedIOException instead of
IOExceptionstatic NilToInt bind(DblToInt f, double d)
(d) to f, returning a new function
of type () -> int.f - the unbound functiond - the argument() -> int that calls
f.call(d) and returns the result.default NilToInt bind(double d)
(d) to this, returning a new function
of type () -> int.bind in interface DblToIntE<RuntimeException>d - the argument() -> int that calls
this.call(d) and returns the result.default int applyAsInt(double d)
this to act as a DoubleToIntFunction.applyAsInt in interface DoubleToIntFunctiond - the argumentCopyright © 2015. All rights reserved.