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