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