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