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