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