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