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