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