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