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