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