T - the type of the argument@FunctionalInterface public interface ObjLongToShort<T> extends ObjLongToShortE<T,RuntimeException>
(T, long) -> short.| Modifier and Type | Method and Description |
|---|---|
static <T> LongToShort |
bind(ObjLongToShort<T> f,
T t)
Binds
(t) to the beginning of f, returning a new function
of type (long) -> short. |
static <T> NilToShort |
bind(ObjLongToShort<T> f,
T t,
long l)
Binds
(t, l) to f, returning a new function
of type () -> short. |
default LongToShort |
bind(T t)
Binds
(t) to the beginning of this, returning a new function
of type (long) -> short. |
default NilToShort |
bind(T t,
long l)
Binds
(t, l) to this, returning a new function
of type () -> short. |
default ObjToShort<T> |
rbind(long l)
Binds
(l) to the end of this, returning a new function
of type (T) -> short. |
static <T> ObjToShort<T> |
rbind(ObjLongToShort<T> f,
long l)
Binds
(l) to the end of f, returning a new function
of type (T) -> short. |
static <T,E extends Exception> |
unchecked(Function<? super E,RuntimeException> toRuntime,
ObjLongToShortE<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(ObjLongToShortE<T,E> f)
Returns a wrapped version of
f that wraps any checked Exception with a
RuntimeException. |
static <T,E extends IOException> |
uncheckedIO(ObjLongToShortE<T,E> f)
|
bind, bind, call, rbindstatic <T,E extends Exception> ObjLongToShort<T> unchecked(Function<? super E,RuntimeException> toRuntime, ObjLongToShortE<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
ObjLongToShortE.call(T, long), 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> ObjLongToShort<T> unchecked(ObjLongToShortE<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> ObjLongToShort<T> uncheckedIO(ObjLongToShortE<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> LongToShort bind(ObjLongToShort<T> f, T t)
(t) to the beginning of f, returning a new function
of type (long) -> short.T - the type of the argumentf - the unbound functiont - argument 1(long l) -> short that calls
f.call(t, l) and returns the result.default LongToShort bind(T t)
(t) to the beginning of this, returning a new function
of type (long) -> short.bind in interface ObjLongToShortE<T,RuntimeException>t - argument 1(long l) -> short that calls
this.call(t, l) and returns the result.static <T> ObjToShort<T> rbind(ObjLongToShort<T> f, long l)
(l) to the end of f, returning a new function
of type (T) -> short.T - the type of the argumentf - the unbound functionl - argument 2(T t) -> short that calls
f.call(t, l) and returns the result.default ObjToShort<T> rbind(long l)
(l) to the end of this, returning a new function
of type (T) -> short.rbind in interface ObjLongToShortE<T,RuntimeException>l - argument 2(T t) -> short that calls
this.call(t, l) and returns the result.static <T> NilToShort bind(ObjLongToShort<T> f, T t, long l)
(t, l) to f, returning a new function
of type () -> short.T - the type of the argumentf - the unbound functiont - argument 1l - argument 2() -> short that calls
f.call(t, l) and returns the result.default NilToShort bind(T t, long l)
(t, l) to this, returning a new function
of type () -> short.bind in interface ObjLongToShortE<T,RuntimeException>t - argument 1l - argument 2() -> short that calls
this.call(t, l) and returns the result.Copyright © 2014. All rights reserved.