@FunctionalInterface public interface ShortByteToNil extends ShortByteToNilE<RuntimeException>
(short, byte) -> void.| Modifier and Type | Method and Description |
|---|---|
default ByteToNil |
bind(short sh)
Binds
(sh) to the beginning of this, returning a new function
of type (byte) -> void. |
default NilToNil |
bind(short sh,
byte b)
Binds
(sh, b) to this, returning a new function
of type () -> void. |
static ByteToNil |
bind(ShortByteToNil f,
short sh)
Binds
(sh) to the beginning of f, returning a new function
of type (byte) -> void. |
static NilToNil |
bind(ShortByteToNil f,
short sh,
byte b)
Binds
(sh, b) to f, returning a new function
of type () -> void. |
default ShortToNil |
rbind(byte b)
Binds
(b) to the end of this, returning a new function
of type (short) -> void. |
static ShortToNil |
rbind(ShortByteToNil f,
byte b)
Binds
(b) to the end of f, returning a new function
of type (short) -> void. |
static <E extends Exception> |
unchecked(Function<? super E,RuntimeException> toRuntime,
ShortByteToNilE<E> f)
Returns a wrapped version of
f that uses toRuntime to convert any checked
Exception to a RuntimeException. |
static <E extends Exception> |
unchecked(ShortByteToNilE<E> f)
Returns a wrapped version of
f that wraps any checked Exception with a
RuntimeException. |
static <E extends IOException> |
uncheckedIO(ShortByteToNilE<E> f)
|
bind, bind, call, rbindstatic <E extends Exception> ShortByteToNil unchecked(Function<? super E,RuntimeException> toRuntime, ShortByteToNilE<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
ShortByteToNilE.call(short, byte), 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> ShortByteToNil unchecked(ShortByteToNilE<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> ShortByteToNil uncheckedIO(ShortByteToNilE<E> f)
E - the Exception type that the operation may throwf - the operation to wrapf that throws UncheckedIOException instead of
IOExceptionstatic ByteToNil bind(ShortByteToNil f, short sh)
(sh) to the beginning of f, returning a new function
of type (byte) -> void.f - the unbound functionsh - argument 1(byte b) -> void that calls
f.call(sh, b).default ByteToNil bind(short sh)
(sh) to the beginning of this, returning a new function
of type (byte) -> void.bind in interface ShortByteToNilE<RuntimeException>sh - argument 1(byte b) -> void that calls
this.call(sh, b).static ShortToNil rbind(ShortByteToNil f, byte b)
(b) to the end of f, returning a new function
of type (short) -> void.f - the unbound functionb - argument 2(short sh) -> void that calls
f.call(sh, b).default ShortToNil rbind(byte b)
(b) to the end of this, returning a new function
of type (short) -> void.rbind in interface ShortByteToNilE<RuntimeException>b - argument 2(short sh) -> void that calls
this.call(sh, b).static NilToNil bind(ShortByteToNil f, short sh, byte b)
(sh, b) to f, returning a new function
of type () -> void.f - the unbound functionsh - argument 1b - argument 2() -> void that calls
f.call(sh, b).default NilToNil bind(short sh, byte b)
(sh, b) to this, returning a new function
of type () -> void.bind in interface ShortByteToNilE<RuntimeException>sh - argument 1b - argument 2() -> void that calls
this.call(sh, b).Copyright © 2014. All rights reserved.