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