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