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