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