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