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