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