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