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