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