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