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