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