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