R - the type of the return value@FunctionalInterface public interface DblToObj<R> extends DblToObjE<R,RuntimeException>, DoubleFunction<R>
(double) -> R.| Modifier and Type | Method and Description |
|---|---|
default R |
apply(double d)
Allows
this to act as a DoubleFunction<R>. |
static <R> NilToObj<R> |
bind(DblToObj<R> f,
double d)
Binds
(d) to f, returning a new function
of type () -> R. |
default NilToObj<R> |
bind(double d)
Binds
(d) to this, returning a new function
of type () -> R. |
static <R,E extends Exception> |
unchecked(DblToObjE<R,E> f)
Returns a wrapped version of
f that wraps any checked Exception with a
RuntimeException. |
static <R,E extends Exception> |
unchecked(Function<? super E,RuntimeException> toRuntime,
DblToObjE<R,E> f)
Returns a wrapped version of
f that uses toRuntime to convert any checked
Exception to a RuntimeException. |
static <R,E extends IOException> |
uncheckedIO(DblToObjE<R,E> f)
|
static <R,E extends Exception> DblToObj<R> unchecked(Function<? super E,RuntimeException> toRuntime, DblToObjE<R,E> f)
f that uses toRuntime to convert any checked
Exception to a RuntimeException.R - the type of the return valueE - the Exception type that the operation may throwtoRuntime - if a checked exception is thrown from
DblToObjE.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 <R,E extends Exception> DblToObj<R> unchecked(DblToObjE<R,E> f)
f that wraps any checked Exception with a
RuntimeException.R - the type of the return valueE - the Exception type that the operation may throwf - the operation to wrapf that does not throw checked exceptionsstatic <R,E extends IOException> DblToObj<R> uncheckedIO(DblToObjE<R,E> f)
R - the type of the return valueE - the Exception type that the operation may throwf - the operation to wrapf that throws UncheckedIOException instead of
IOExceptionstatic <R> NilToObj<R> bind(DblToObj<R> f, double d)
(d) to f, returning a new function
of type () -> R.R - the type of the return valuef - the unbound functiond - the argument() -> R that calls
f.call(d) and returns the result.default NilToObj<R> bind(double d)
(d) to this, returning a new function
of type () -> R.bind in interface DblToObjE<R,RuntimeException>d - the argument() -> R that calls
this.call(d) and returns the result.default R apply(double d)
this to act as a DoubleFunction<R>.apply in interface DoubleFunction<R>d - the argumentCopyright © 2015. All rights reserved.