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