R - the type of the return value@FunctionalInterface public interface ShortShortToObj<R> extends ShortShortToObjE<R,RuntimeException>
(short, short) -> R.| Modifier and Type | Method and Description |
|---|---|
default ShortToObj<R> |
bind(short sh1)
Binds
(sh1) to the beginning of this, returning a new function
of type (short) -> R. |
default NilToObj<R> |
bind(short sh1,
short sh2)
Binds
(sh1, sh2) to this, returning a new function
of type () -> R. |
static <R> ShortToObj<R> |
bind(ShortShortToObj<R> f,
short sh1)
Binds
(sh1) to the beginning of f, returning a new function
of type (short) -> R. |
static <R> NilToObj<R> |
bind(ShortShortToObj<R> f,
short sh1,
short sh2)
Binds
(sh1, sh2) to f, returning a new function
of type () -> R. |
default ShortToObj<R> |
rbind(short sh2)
Binds
(sh2) to the end of this, returning a new function
of type (short) -> R. |
static <R> ShortToObj<R> |
rbind(ShortShortToObj<R> f,
short sh2)
Binds
(sh2) to the end of f, returning a new function
of type (short) -> R. |
static <R,E extends Exception> |
unchecked(Function<? super E,RuntimeException> toRuntime,
ShortShortToObjE<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(ShortShortToObjE<R,E> f)
Returns a wrapped version of
f that wraps any checked Exception with a
RuntimeException. |
static <R,E extends IOException> |
uncheckedIO(ShortShortToObjE<R,E> f)
|
bind, bind, call, rbindstatic <R,E extends Exception> ShortShortToObj<R> unchecked(Function<? super E,RuntimeException> toRuntime, ShortShortToObjE<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
ShortShortToObjE.call(short, short), 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> ShortShortToObj<R> unchecked(ShortShortToObjE<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> ShortShortToObj<R> uncheckedIO(ShortShortToObjE<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> ShortToObj<R> bind(ShortShortToObj<R> f, short sh1)
(sh1) to the beginning of f, returning a new function
of type (short) -> R.R - the type of the return valuef - the unbound functionsh1 - argument 1(short sh2) -> R that calls
f.call(sh1, sh2) and returns the result.default ShortToObj<R> bind(short sh1)
(sh1) to the beginning of this, returning a new function
of type (short) -> R.bind in interface ShortShortToObjE<R,RuntimeException>sh1 - argument 1(short sh2) -> R that calls
this.call(sh1, sh2) and returns the result.static <R> ShortToObj<R> rbind(ShortShortToObj<R> f, short sh2)
(sh2) to the end of f, returning a new function
of type (short) -> R.R - the type of the return valuef - the unbound functionsh2 - argument 2(short sh1) -> R that calls
f.call(sh1, sh2) and returns the result.default ShortToObj<R> rbind(short sh2)
(sh2) to the end of this, returning a new function
of type (short) -> R.rbind in interface ShortShortToObjE<R,RuntimeException>sh2 - argument 2(short sh1) -> R that calls
this.call(sh1, sh2) and returns the result.static <R> NilToObj<R> bind(ShortShortToObj<R> f, short sh1, short sh2)
(sh1, sh2) to f, returning a new function
of type () -> R.R - the type of the return valuef - the unbound functionsh1 - argument 1sh2 - argument 2() -> R that calls
f.call(sh1, sh2) and returns the result.default NilToObj<R> bind(short sh1, short sh2)
(sh1, sh2) to this, returning a new function
of type () -> R.bind in interface ShortShortToObjE<R,RuntimeException>sh1 - argument 1sh2 - argument 2() -> R that calls
this.call(sh1, sh2) and returns the result.Copyright © 2014. All rights reserved.