T - the type of the argument@FunctionalInterface public interface ObjShortToNil<T> extends ObjShortToNilE<T,RuntimeException>
(T, short) -> void.| Modifier and Type | Method and Description |
|---|---|
static <T> ShortToNil |
bind(ObjShortToNil<T> f,
T t)
Binds
(t) to the beginning of f, returning a new function
of type (short) -> void. |
static <T> NilToNil |
bind(ObjShortToNil<T> f,
T t,
short sh)
Binds
(t, sh) to f, returning a new function
of type () -> void. |
default ShortToNil |
bind(T t)
Binds
(t) to the beginning of this, returning a new function
of type (short) -> void. |
default NilToNil |
bind(T t,
short sh)
Binds
(t, sh) to this, returning a new function
of type () -> void. |
static <T> ObjToNil<T> |
rbind(ObjShortToNil<T> f,
short sh)
Binds
(sh) to the end of f, returning a new function
of type (T) -> void. |
default ObjToNil<T> |
rbind(short sh)
Binds
(sh) to the end of this, returning a new function
of type (T) -> void. |
static <T,E extends Exception> |
unchecked(Function<? super E,RuntimeException> toRuntime,
ObjShortToNilE<T,E> f)
Returns a wrapped version of
f that uses toRuntime to convert any checked
Exception to a RuntimeException. |
static <T,E extends Exception> |
unchecked(ObjShortToNilE<T,E> f)
Returns a wrapped version of
f that wraps any checked Exception with a
RuntimeException. |
static <T,E extends IOException> |
uncheckedIO(ObjShortToNilE<T,E> f)
|
bind, bind, call, rbindstatic <T,E extends Exception> ObjShortToNil<T> unchecked(Function<? super E,RuntimeException> toRuntime, ObjShortToNilE<T,E> f)
f that uses toRuntime to convert any checked
Exception to a RuntimeException.T - the type of argument 1E - the Exception type that the operation may throwtoRuntime - if a checked exception is thrown from
ObjShortToNilE.call(T, 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 <T,E extends Exception> ObjShortToNil<T> unchecked(ObjShortToNilE<T,E> f)
f that wraps any checked Exception with a
RuntimeException.T - the type of argument 1E - the Exception type that the operation may throwf - the operation to wrapf that does not throw checked exceptionsstatic <T,E extends IOException> ObjShortToNil<T> uncheckedIO(ObjShortToNilE<T,E> f)
T - the type of argument 1E - the Exception type that the operation may throwf - the operation to wrapf that throws UncheckedIOException instead of
IOExceptionstatic <T> ShortToNil bind(ObjShortToNil<T> f, T t)
(t) to the beginning of f, returning a new function
of type (short) -> void.T - the type of the argumentf - the unbound functiont - argument 1(short sh) -> void that calls
f.call(t, sh).default ShortToNil bind(T t)
(t) to the beginning of this, returning a new function
of type (short) -> void.bind in interface ObjShortToNilE<T,RuntimeException>t - argument 1(short sh) -> void that calls
this.call(t, sh).static <T> ObjToNil<T> rbind(ObjShortToNil<T> f, short sh)
(sh) to the end of f, returning a new function
of type (T) -> void.T - the type of the argumentf - the unbound functionsh - argument 2(T t) -> void that calls
f.call(t, sh).default ObjToNil<T> rbind(short sh)
(sh) to the end of this, returning a new function
of type (T) -> void.rbind in interface ObjShortToNilE<T,RuntimeException>sh - argument 2(T t) -> void that calls
this.call(t, sh).static <T> NilToNil bind(ObjShortToNil<T> f, T t, short sh)
(t, sh) to f, returning a new function
of type () -> void.T - the type of the argumentf - the unbound functiont - argument 1sh - argument 2() -> void that calls
f.call(t, sh).default NilToNil bind(T t, short sh)
(t, sh) to this, returning a new function
of type () -> void.bind in interface ObjShortToNilE<T,RuntimeException>t - argument 1sh - argument 2() -> void that calls
this.call(t, sh).Copyright © 2014. All rights reserved.