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