T - the type of the argument@FunctionalInterface public interface ObjDblToShort<T> extends ObjDblToShortE<T,RuntimeException>
(T, double) -> short.| Modifier and Type | Method and Description |
|---|---|
static <T> DblToShort |
bind(ObjDblToShort<T> f,
T t)
Binds
(t) to the beginning of f, returning a new function
of type (double) -> short. |
static <T> NilToShort |
bind(ObjDblToShort<T> f,
T t,
double d)
Binds
(t, d) to f, returning a new function
of type () -> short. |
default DblToShort |
bind(T t)
Binds
(t) to the beginning of this, returning a new function
of type (double) -> short. |
default NilToShort |
bind(T t,
double d)
Binds
(t, d) to this, returning a new function
of type () -> short. |
default ObjToShort<T> |
rbind(double d)
Binds
(d) to the end of this, returning a new function
of type (T) -> short. |
static <T> ObjToShort<T> |
rbind(ObjDblToShort<T> f,
double d)
Binds
(d) to the end of f, returning a new function
of type (T) -> short. |
static <T,E extends Exception> |
unchecked(Function<? super E,RuntimeException> toRuntime,
ObjDblToShortE<T,E> f)
Returns a wrapped version of
f that uses toRuntime to convert any checked
Exception to a RuntimeException. |
static <T,E extends Exception> |
unchecked(ObjDblToShortE<T,E> f)
Returns a wrapped version of
f that wraps any checked Exception with a
RuntimeException. |
static <T,E extends IOException> |
uncheckedIO(ObjDblToShortE<T,E> f)
|
bind, bind, call, rbindstatic <T,E extends Exception> ObjDblToShort<T> unchecked(Function<? super E,RuntimeException> toRuntime, ObjDblToShortE<T,E> f)
f that uses toRuntime to convert any checked
Exception to a RuntimeException.T - the type of argument 1E - the Exception type that the operation may throwtoRuntime - if a checked exception is thrown from
ObjDblToShortE.call(T, double), then this function
is called in in order to convert it to a RuntimeExceptionf - the operation to wrapf that does not throw checked exceptionsstatic <T,E extends Exception> ObjDblToShort<T> unchecked(ObjDblToShortE<T,E> f)
f that wraps any checked Exception with a
RuntimeException.T - the type of argument 1E - the Exception type that the operation may throwf - the operation to wrapf that does not throw checked exceptionsstatic <T,E extends IOException> ObjDblToShort<T> uncheckedIO(ObjDblToShortE<T,E> f)
T - the type of argument 1E - the Exception type that the operation may throwf - the operation to wrapf that throws UncheckedIOException instead of
IOExceptionstatic <T> DblToShort bind(ObjDblToShort<T> f, T t)
(t) to the beginning of f, returning a new function
of type (double) -> short.T - the type of the argumentf - the unbound functiont - argument 1(double d) -> short that calls
f.call(t, d) and returns the result.default DblToShort bind(T t)
(t) to the beginning of this, returning a new function
of type (double) -> short.bind in interface ObjDblToShortE<T,RuntimeException>t - argument 1(double d) -> short that calls
this.call(t, d) and returns the result.static <T> ObjToShort<T> rbind(ObjDblToShort<T> f, double d)
(d) to the end of f, returning a new function
of type (T) -> short.T - the type of the argumentf - the unbound functiond - argument 2(T t) -> short that calls
f.call(t, d) and returns the result.default ObjToShort<T> rbind(double d)
(d) to the end of this, returning a new function
of type (T) -> short.rbind in interface ObjDblToShortE<T,RuntimeException>d - argument 2(T t) -> short that calls
this.call(t, d) and returns the result.static <T> NilToShort bind(ObjDblToShort<T> f, T t, double d)
(t, d) to f, returning a new function
of type () -> short.T - the type of the argumentf - the unbound functiont - argument 1d - argument 2() -> short that calls
f.call(t, d) and returns the result.default NilToShort bind(T t, double d)
(t, d) to this, returning a new function
of type () -> short.bind in interface ObjDblToShortE<T,RuntimeException>t - argument 1d - argument 2() -> short that calls
this.call(t, d) and returns the result.Copyright © 2014. All rights reserved.