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