@FunctionalInterface public interface ShortBoolToInt extends ShortBoolToIntE<RuntimeException>
(short, boolean) -> int.| Modifier and Type | Method and Description |
|---|---|
default BoolToInt |
bind(short sh)
Binds
(sh) to the beginning of this, returning a new function
of type (boolean) -> int. |
default NilToInt |
bind(short sh,
boolean bool)
Binds
(sh, bool) to this, returning a new function
of type () -> int. |
static BoolToInt |
bind(ShortBoolToInt f,
short sh)
Binds
(sh) to the beginning of f, returning a new function
of type (boolean) -> int. |
static NilToInt |
bind(ShortBoolToInt f,
short sh,
boolean bool)
Binds
(sh, bool) to f, returning a new function
of type () -> int. |
default ShortToInt |
rbind(boolean bool)
Binds
(bool) to the end of this, returning a new function
of type (short) -> int. |
static ShortToInt |
rbind(ShortBoolToInt f,
boolean bool)
Binds
(bool) to the end of f, returning a new function
of type (short) -> int. |
static <E extends Exception> |
unchecked(Function<? super E,RuntimeException> toRuntime,
ShortBoolToIntE<E> f)
Returns a wrapped version of
f that uses toRuntime to convert any checked
Exception to a RuntimeException. |
static <E extends Exception> |
unchecked(ShortBoolToIntE<E> f)
Returns a wrapped version of
f that wraps any checked Exception with a
RuntimeException. |
static <E extends IOException> |
uncheckedIO(ShortBoolToIntE<E> f)
|
bind, bind, call, rbindstatic <E extends Exception> ShortBoolToInt unchecked(Function<? super E,RuntimeException> toRuntime, ShortBoolToIntE<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
ShortBoolToIntE.call(short, 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> ShortBoolToInt unchecked(ShortBoolToIntE<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> ShortBoolToInt uncheckedIO(ShortBoolToIntE<E> f)
E - the Exception type that the operation may throwf - the operation to wrapf that throws UncheckedIOException instead of
IOExceptionstatic BoolToInt bind(ShortBoolToInt f, short sh)
(sh) to the beginning of f, returning a new function
of type (boolean) -> int.f - the unbound functionsh - argument 1(boolean bool) -> int that calls
f.call(sh, bool) and returns the result.default BoolToInt bind(short sh)
(sh) to the beginning of this, returning a new function
of type (boolean) -> int.bind in interface ShortBoolToIntE<RuntimeException>sh - argument 1(boolean bool) -> int that calls
this.call(sh, bool) and returns the result.static ShortToInt rbind(ShortBoolToInt f, boolean bool)
(bool) to the end of f, returning a new function
of type (short) -> int.f - the unbound functionbool - argument 2(short sh) -> int that calls
f.call(sh, bool) and returns the result.default ShortToInt rbind(boolean bool)
(bool) to the end of this, returning a new function
of type (short) -> int.rbind in interface ShortBoolToIntE<RuntimeException>bool - argument 2(short sh) -> int that calls
this.call(sh, bool) and returns the result.static NilToInt bind(ShortBoolToInt f, short sh, boolean bool)
(sh, bool) to f, returning a new function
of type () -> int.f - the unbound functionsh - argument 1bool - argument 2() -> int that calls
f.call(sh, bool) and returns the result.default NilToInt bind(short sh, boolean bool)
(sh, bool) to this, returning a new function
of type () -> int.bind in interface ShortBoolToIntE<RuntimeException>sh - argument 1bool - argument 2() -> int that calls
this.call(sh, bool) and returns the result.Copyright © 2014. All rights reserved.