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