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