@FunctionalInterface public interface BoolShortToDbl extends BoolShortToDblE<RuntimeException>
(boolean, short) -> double.| Modifier and Type | Method and Description |
|---|---|
default ShortToDbl |
bind(boolean bool)
Binds
(bool) to the beginning of this, returning a new function
of type (short) -> double. |
default NilToDbl |
bind(boolean bool,
short sh)
Binds
(bool, sh) to this, returning a new function
of type () -> double. |
static ShortToDbl |
bind(BoolShortToDbl f,
boolean bool)
Binds
(bool) to the beginning of f, returning a new function
of type (short) -> double. |
static NilToDbl |
bind(BoolShortToDbl f,
boolean bool,
short sh)
Binds
(bool, sh) to f, returning a new function
of type () -> double. |
static BoolToDbl |
rbind(BoolShortToDbl f,
short sh)
Binds
(sh) to the end of f, returning a new function
of type (boolean) -> double. |
default BoolToDbl |
rbind(short sh)
Binds
(sh) to the end of this, returning a new function
of type (boolean) -> double. |
static <E extends Exception> |
unchecked(BoolShortToDblE<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,
BoolShortToDblE<E> f)
Returns a wrapped version of
f that uses toRuntime to convert any checked
Exception to a RuntimeException. |
static <E extends IOException> |
uncheckedIO(BoolShortToDblE<E> f)
|
bind, bind, call, rbindstatic <E extends Exception> BoolShortToDbl unchecked(Function<? super E,RuntimeException> toRuntime, BoolShortToDblE<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
BoolShortToDblE.call(boolean, short), 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> BoolShortToDbl unchecked(BoolShortToDblE<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> BoolShortToDbl uncheckedIO(BoolShortToDblE<E> f)
E - the Exception type that the operation may throwf - the operation to wrapf that throws UncheckedIOException instead of
IOExceptionstatic ShortToDbl bind(BoolShortToDbl f, boolean bool)
(bool) to the beginning of f, returning a new function
of type (short) -> double.f - the unbound functionbool - argument 1(short sh) -> double that calls
f.call(bool, sh) and returns the result.default ShortToDbl bind(boolean bool)
(bool) to the beginning of this, returning a new function
of type (short) -> double.bind in interface BoolShortToDblE<RuntimeException>bool - argument 1(short sh) -> double that calls
this.call(bool, sh) and returns the result.static BoolToDbl rbind(BoolShortToDbl f, short sh)
(sh) to the end of f, returning a new function
of type (boolean) -> double.f - the unbound functionsh - argument 2(boolean bool) -> double that calls
f.call(bool, sh) and returns the result.default BoolToDbl rbind(short sh)
(sh) to the end of this, returning a new function
of type (boolean) -> double.rbind in interface BoolShortToDblE<RuntimeException>sh - argument 2(boolean bool) -> double that calls
this.call(bool, sh) and returns the result.static NilToDbl bind(BoolShortToDbl f, boolean bool, short sh)
(bool, sh) to f, returning a new function
of type () -> double.f - the unbound functionbool - argument 1sh - argument 2() -> double that calls
f.call(bool, sh) and returns the result.default NilToDbl bind(boolean bool, short sh)
(bool, sh) to this, returning a new function
of type () -> double.bind in interface BoolShortToDblE<RuntimeException>bool - argument 1sh - argument 2() -> double that calls
this.call(bool, sh) and returns the result.Copyright © 2014. All rights reserved.