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