U - the type of the argument@FunctionalInterface public interface ShortObjToByte<U> extends ShortObjToByteE<U,RuntimeException>
(short, U) -> byte.| Modifier and Type | Method and Description |
|---|---|
default ObjToByte<U> |
bind(short sh)
Binds
(sh) to the beginning of this, returning a new function
of type (U) -> byte. |
static <U> ObjToByte<U> |
bind(ShortObjToByte<U> f,
short sh)
Binds
(sh) to the beginning of f, returning a new function
of type (U) -> byte. |
static <U> NilToByte |
bind(ShortObjToByte<U> f,
short sh,
U u)
Binds
(sh, u) to f, returning a new function
of type () -> byte. |
default NilToByte |
bind(short sh,
U u)
Binds
(sh, u) to this, returning a new function
of type () -> byte. |
static <U> ShortToByte |
rbind(ShortObjToByte<U> f,
U u)
Binds
(u) to the end of f, returning a new function
of type (short) -> byte. |
default ShortToByte |
rbind(U u)
Binds
(u) to the end of this, returning a new function
of type (short) -> byte. |
static <U,E extends Exception> |
unchecked(Function<? super E,RuntimeException> toRuntime,
ShortObjToByteE<U,E> f)
Returns a wrapped version of
f that uses toRuntime to convert any checked
Exception to a RuntimeException. |
static <U,E extends Exception> |
unchecked(ShortObjToByteE<U,E> f)
Returns a wrapped version of
f that wraps any checked Exception with a
RuntimeException. |
static <U,E extends IOException> |
uncheckedIO(ShortObjToByteE<U,E> f)
|
bind, bind, call, rbindstatic <U,E extends Exception> ShortObjToByte<U> unchecked(Function<? super E,RuntimeException> toRuntime, ShortObjToByteE<U,E> f)
f that uses toRuntime to convert any checked
Exception to a RuntimeException.U - the type of argument 2E - the Exception type that the operation may throwtoRuntime - if a checked exception is thrown from
ShortObjToByteE.call(short, U), then this function
is called in in order to convert it to a RuntimeExceptionf - the operation to wrapf that does not throw checked exceptionsstatic <U,E extends Exception> ShortObjToByte<U> unchecked(ShortObjToByteE<U,E> f)
f that wraps any checked Exception with a
RuntimeException.U - the type of argument 2E - the Exception type that the operation may throwf - the operation to wrapf that does not throw checked exceptionsstatic <U,E extends IOException> ShortObjToByte<U> uncheckedIO(ShortObjToByteE<U,E> f)
U - the type of argument 2E - the Exception type that the operation may throwf - the operation to wrapf that throws UncheckedIOException instead of
IOExceptionstatic <U> ObjToByte<U> bind(ShortObjToByte<U> f, short sh)
(sh) to the beginning of f, returning a new function
of type (U) -> byte.U - the type of the argumentf - the unbound functionsh - argument 1(U u) -> byte that calls
f.call(sh, u) and returns the result.default ObjToByte<U> bind(short sh)
(sh) to the beginning of this, returning a new function
of type (U) -> byte.bind in interface ShortObjToByteE<U,RuntimeException>sh - argument 1(U u) -> byte that calls
this.call(sh, u) and returns the result.static <U> ShortToByte rbind(ShortObjToByte<U> f, U u)
(u) to the end of f, returning a new function
of type (short) -> byte.U - the type of the argumentf - the unbound functionu - argument 2(short sh) -> byte that calls
f.call(sh, u) and returns the result.default ShortToByte rbind(U u)
(u) to the end of this, returning a new function
of type (short) -> byte.rbind in interface ShortObjToByteE<U,RuntimeException>u - argument 2(short sh) -> byte that calls
this.call(sh, u) and returns the result.static <U> NilToByte bind(ShortObjToByte<U> f, short sh, U u)
(sh, u) to f, returning a new function
of type () -> byte.U - the type of the argumentf - the unbound functionsh - argument 1u - argument 2() -> byte that calls
f.call(sh, u) and returns the result.default NilToByte bind(short sh, U u)
(sh, u) to this, returning a new function
of type () -> byte.bind in interface ShortObjToByteE<U,RuntimeException>sh - argument 1u - argument 2() -> byte that calls
this.call(sh, u) and returns the result.Copyright © 2014. All rights reserved.