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