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