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