U - the type of the argument@FunctionalInterface public interface LongObjToShort<U> extends LongObjToShortE<U,RuntimeException>
(long, U) -> short.| Modifier and Type | Method and Description |
|---|---|
default ObjToShort<U> |
bind(long l)
Binds
(l) to the beginning of this, returning a new function
of type (U) -> short. |
static <U> ObjToShort<U> |
bind(LongObjToShort<U> f,
long l)
Binds
(l) to the beginning of f, returning a new function
of type (U) -> short. |
static <U> NilToShort |
bind(LongObjToShort<U> f,
long l,
U u)
Binds
(l, u) to f, returning a new function
of type () -> short. |
default NilToShort |
bind(long l,
U u)
Binds
(l, u) to this, returning a new function
of type () -> short. |
static <U> LongToShort |
rbind(LongObjToShort<U> f,
U u)
Binds
(u) to the end of f, returning a new function
of type (long) -> short. |
default LongToShort |
rbind(U u)
Binds
(u) to the end of this, returning a new function
of type (long) -> short. |
static <U,E extends Exception> |
unchecked(Function<? super E,RuntimeException> toRuntime,
LongObjToShortE<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(LongObjToShortE<U,E> f)
Returns a wrapped version of
f that wraps any checked Exception with a
RuntimeException. |
static <U,E extends IOException> |
uncheckedIO(LongObjToShortE<U,E> f)
|
bind, bind, call, rbindstatic <U,E extends Exception> LongObjToShort<U> unchecked(Function<? super E,RuntimeException> toRuntime, LongObjToShortE<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
LongObjToShortE.call(long, 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> LongObjToShort<U> unchecked(LongObjToShortE<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> LongObjToShort<U> uncheckedIO(LongObjToShortE<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> ObjToShort<U> bind(LongObjToShort<U> f, long l)
(l) to the beginning of f, returning a new function
of type (U) -> short.U - the type of the argumentf - the unbound functionl - argument 1(U u) -> short that calls
f.call(l, u) and returns the result.default ObjToShort<U> bind(long l)
(l) to the beginning of this, returning a new function
of type (U) -> short.bind in interface LongObjToShortE<U,RuntimeException>l - argument 1(U u) -> short that calls
this.call(l, u) and returns the result.static <U> LongToShort rbind(LongObjToShort<U> f, U u)
(u) to the end of f, returning a new function
of type (long) -> short.U - the type of the argumentf - the unbound functionu - argument 2(long l) -> short that calls
f.call(l, u) and returns the result.default LongToShort rbind(U u)
(u) to the end of this, returning a new function
of type (long) -> short.rbind in interface LongObjToShortE<U,RuntimeException>u - argument 2(long l) -> short that calls
this.call(l, u) and returns the result.static <U> NilToShort bind(LongObjToShort<U> f, long l, U u)
(l, u) to f, returning a new function
of type () -> short.U - the type of the argumentf - the unbound functionl - argument 1u - argument 2() -> short that calls
f.call(l, u) and returns the result.default NilToShort bind(long l, U u)
(l, u) to this, returning a new function
of type () -> short.bind in interface LongObjToShortE<U,RuntimeException>l - argument 1u - argument 2() -> short that calls
this.call(l, u) and returns the result.Copyright © 2014. All rights reserved.