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