@FunctionalInterface public interface IntToDbl extends IntToDblE<RuntimeException>, IntToDoubleFunction
(int) -> double.| Modifier and Type | Method and Description |
|---|---|
default double |
applyAsDouble(int i)
Allows
this to act as a IntToDoubleFunction. |
default NilToDbl |
bind(int i)
Binds
(i) to this, returning a new function
of type () -> double. |
static NilToDbl |
bind(IntToDbl f,
int i)
Binds
(i) to f, returning a new function
of type () -> double. |
static <E extends Exception> |
unchecked(Function<? super E,RuntimeException> toRuntime,
IntToDblE<E> f)
Returns a wrapped version of
f that uses toRuntime to convert any checked
Exception to a RuntimeException. |
static <E extends Exception> |
unchecked(IntToDblE<E> f)
Returns a wrapped version of
f that wraps any checked Exception with a
RuntimeException. |
static <E extends IOException> |
uncheckedIO(IntToDblE<E> f)
|
static <E extends Exception> IntToDbl unchecked(Function<? super E,RuntimeException> toRuntime, IntToDblE<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
IntToDblE.call(int), 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> IntToDbl unchecked(IntToDblE<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> IntToDbl uncheckedIO(IntToDblE<E> f)
E - the Exception type that the operation may throwf - the operation to wrapf that throws UncheckedIOException instead of
IOExceptionstatic NilToDbl bind(IntToDbl f, int i)
(i) to f, returning a new function
of type () -> double.f - the unbound functioni - the argument() -> double that calls
f.call(i) and returns the result.default NilToDbl bind(int i)
(i) to this, returning a new function
of type () -> double.bind in interface IntToDblE<RuntimeException>i - the argument() -> double that calls
this.call(i) and returns the result.default double applyAsDouble(int i)
this to act as a IntToDoubleFunction.applyAsDouble in interface IntToDoubleFunctioni - the argumentCopyright © 2015. All rights reserved.