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