@FunctionalInterface public interface BoolBoolToShort extends BoolBoolToShortE<RuntimeException>
(boolean, boolean) -> short.| Modifier and Type | Method and Description |
|---|---|
static BoolToShort |
bind(BoolBoolToShort f,
boolean bool1)
Binds
(bool1) to the beginning of f, returning a new function
of type (boolean) -> short. |
static NilToShort |
bind(BoolBoolToShort f,
boolean bool1,
boolean bool2)
Binds
(bool1, bool2) to f, returning a new function
of type () -> short. |
default BoolToShort |
bind(boolean bool1)
Binds
(bool1) to the beginning of this, returning a new function
of type (boolean) -> short. |
default NilToShort |
bind(boolean bool1,
boolean bool2)
Binds
(bool1, bool2) to this, returning a new function
of type () -> short. |
static BoolToShort |
rbind(BoolBoolToShort f,
boolean bool2)
Binds
(bool2) to the end of f, returning a new function
of type (boolean) -> short. |
default BoolToShort |
rbind(boolean bool2)
Binds
(bool2) to the end of this, returning a new function
of type (boolean) -> short. |
static <E extends Exception> |
unchecked(BoolBoolToShortE<E> f)
Returns a wrapped version of
f that wraps any checked Exception with a
RuntimeException. |
static <E extends Exception> |
unchecked(Function<? super E,RuntimeException> toRuntime,
BoolBoolToShortE<E> f)
Returns a wrapped version of
f that uses toRuntime to convert any checked
Exception to a RuntimeException. |
static <E extends IOException> |
uncheckedIO(BoolBoolToShortE<E> f)
|
bind, bind, call, rbindstatic <E extends Exception> BoolBoolToShort unchecked(Function<? super E,RuntimeException> toRuntime, BoolBoolToShortE<E> f)
f that uses toRuntime to convert any checked
Exception to a RuntimeException.E - the Exception type that the operation may throwtoRuntime - if a checked exception is thrown from
BoolBoolToShortE.call(boolean, boolean), then this function
is called in in order to convert it to a RuntimeExceptionf - the operation to wrapf that does not throw checked exceptionsstatic <E extends Exception> BoolBoolToShort unchecked(BoolBoolToShortE<E> f)
f that wraps any checked Exception with a
RuntimeException.E - the Exception type that the operation may throwf - the operation to wrapf that does not throw checked exceptionsstatic <E extends IOException> BoolBoolToShort uncheckedIO(BoolBoolToShortE<E> f)
E - the Exception type that the operation may throwf - the operation to wrapf that throws UncheckedIOException instead of
IOExceptionstatic BoolToShort bind(BoolBoolToShort f, boolean bool1)
(bool1) to the beginning of f, returning a new function
of type (boolean) -> short.f - the unbound functionbool1 - argument 1(boolean bool2) -> short that calls
f.call(bool1, bool2) and returns the result.default BoolToShort bind(boolean bool1)
(bool1) to the beginning of this, returning a new function
of type (boolean) -> short.bind in interface BoolBoolToShortE<RuntimeException>bool1 - argument 1(boolean bool2) -> short that calls
this.call(bool1, bool2) and returns the result.static BoolToShort rbind(BoolBoolToShort f, boolean bool2)
(bool2) to the end of f, returning a new function
of type (boolean) -> short.f - the unbound functionbool2 - argument 2(boolean bool1) -> short that calls
f.call(bool1, bool2) and returns the result.default BoolToShort rbind(boolean bool2)
(bool2) to the end of this, returning a new function
of type (boolean) -> short.rbind in interface BoolBoolToShortE<RuntimeException>bool2 - argument 2(boolean bool1) -> short that calls
this.call(bool1, bool2) and returns the result.static NilToShort bind(BoolBoolToShort f, boolean bool1, boolean bool2)
(bool1, bool2) to f, returning a new function
of type () -> short.f - the unbound functionbool1 - argument 1bool2 - argument 2() -> short that calls
f.call(bool1, bool2) and returns the result.default NilToShort bind(boolean bool1, boolean bool2)
(bool1, bool2) to this, returning a new function
of type () -> short.bind in interface BoolBoolToShortE<RuntimeException>bool1 - argument 1bool2 - argument 2() -> short that calls
this.call(bool1, bool2) and returns the result.Copyright © 2014. All rights reserved.