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