R - the type of the return value@FunctionalInterface public interface ShortFloatToObj<R> extends ShortFloatToObjE<R,RuntimeException>
(short, float) -> R.| Modifier and Type | Method and Description |
|---|---|
default FloatToObj<R> |
bind(short sh)
Binds
(sh) to the beginning of this, returning a new function
of type (float) -> R. |
default NilToObj<R> |
bind(short sh,
float fl)
Binds
(sh, fl) to this, returning a new function
of type () -> R. |
static <R> FloatToObj<R> |
bind(ShortFloatToObj<R> f,
short sh)
Binds
(sh) to the beginning of f, returning a new function
of type (float) -> R. |
static <R> NilToObj<R> |
bind(ShortFloatToObj<R> f,
short sh,
float fl)
Binds
(sh, fl) to f, returning a new function
of type () -> R. |
default ShortToObj<R> |
rbind(float fl)
Binds
(fl) to the end of this, returning a new function
of type (short) -> R. |
static <R> ShortToObj<R> |
rbind(ShortFloatToObj<R> f,
float fl)
Binds
(fl) to the end of f, returning a new function
of type (short) -> R. |
static <R,E extends Exception> |
unchecked(Function<? super E,RuntimeException> toRuntime,
ShortFloatToObjE<R,E> f)
Returns a wrapped version of
f that uses toRuntime to convert any checked
Exception to a RuntimeException. |
static <R,E extends Exception> |
unchecked(ShortFloatToObjE<R,E> f)
Returns a wrapped version of
f that wraps any checked Exception with a
RuntimeException. |
static <R,E extends IOException> |
uncheckedIO(ShortFloatToObjE<R,E> f)
|
bind, bind, call, rbindstatic <R,E extends Exception> ShortFloatToObj<R> unchecked(Function<? super E,RuntimeException> toRuntime, ShortFloatToObjE<R,E> f)
f that uses toRuntime to convert any checked
Exception to a RuntimeException.R - the type of the return valueE - the Exception type that the operation may throwtoRuntime - if a checked exception is thrown from
ShortFloatToObjE.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 <R,E extends Exception> ShortFloatToObj<R> unchecked(ShortFloatToObjE<R,E> f)
f that wraps any checked Exception with a
RuntimeException.R - the type of the return valueE - the Exception type that the operation may throwf - the operation to wrapf that does not throw checked exceptionsstatic <R,E extends IOException> ShortFloatToObj<R> uncheckedIO(ShortFloatToObjE<R,E> f)
R - the type of the return valueE - the Exception type that the operation may throwf - the operation to wrapf that throws UncheckedIOException instead of
IOExceptionstatic <R> FloatToObj<R> bind(ShortFloatToObj<R> f, short sh)
(sh) to the beginning of f, returning a new function
of type (float) -> R.R - the type of the return valuef - the unbound functionsh - argument 1(float fl) -> R that calls
f.call(sh, fl) and returns the result.default FloatToObj<R> bind(short sh)
(sh) to the beginning of this, returning a new function
of type (float) -> R.bind in interface ShortFloatToObjE<R,RuntimeException>sh - argument 1(float fl) -> R that calls
this.call(sh, fl) and returns the result.static <R> ShortToObj<R> rbind(ShortFloatToObj<R> f, float fl)
(fl) to the end of f, returning a new function
of type (short) -> R.R - the type of the return valuef - the unbound functionfl - argument 2(short sh) -> R that calls
f.call(sh, fl) and returns the result.default ShortToObj<R> rbind(float fl)
(fl) to the end of this, returning a new function
of type (short) -> R.rbind in interface ShortFloatToObjE<R,RuntimeException>fl - argument 2(short sh) -> R that calls
this.call(sh, fl) and returns the result.static <R> NilToObj<R> bind(ShortFloatToObj<R> f, short sh, float fl)
(sh, fl) to f, returning a new function
of type () -> R.R - the type of the return valuef - the unbound functionsh - argument 1fl - argument 2() -> R that calls
f.call(sh, fl) and returns the result.default NilToObj<R> bind(short sh, float fl)
(sh, fl) to this, returning a new function
of type () -> R.bind in interface ShortFloatToObjE<R,RuntimeException>sh - argument 1fl - argument 2() -> R that calls
this.call(sh, fl) and returns the result.Copyright © 2014. All rights reserved.