U - the type of the argument@FunctionalInterface public interface DblObjToShort<U> extends DblObjToShortE<U,RuntimeException>
(double, U) -> short.| Modifier and Type | Method and Description |
|---|---|
static <U> ObjToShort<U> |
bind(DblObjToShort<U> f,
double d)
Binds
(d) to the beginning of f, returning a new function
of type (U) -> short. |
static <U> NilToShort |
bind(DblObjToShort<U> f,
double d,
U u)
Binds
(d, u) to f, returning a new function
of type () -> short. |
default ObjToShort<U> |
bind(double d)
Binds
(d) to the beginning of this, returning a new function
of type (U) -> short. |
default NilToShort |
bind(double d,
U u)
Binds
(d, u) to this, returning a new function
of type () -> short. |
static <U> DblToShort |
rbind(DblObjToShort<U> f,
U u)
Binds
(u) to the end of f, returning a new function
of type (double) -> short. |
default DblToShort |
rbind(U u)
Binds
(u) to the end of this, returning a new function
of type (double) -> short. |
static <U,E extends Exception> |
unchecked(DblObjToShortE<U,E> f)
Returns a wrapped version of
f that wraps any checked Exception with a
RuntimeException. |
static <U,E extends Exception> |
unchecked(Function<? super E,RuntimeException> toRuntime,
DblObjToShortE<U,E> f)
Returns a wrapped version of
f that uses toRuntime to convert any checked
Exception to a RuntimeException. |
static <U,E extends IOException> |
uncheckedIO(DblObjToShortE<U,E> f)
|
bind, bind, call, rbindstatic <U,E extends Exception> DblObjToShort<U> unchecked(Function<? super E,RuntimeException> toRuntime, DblObjToShortE<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
DblObjToShortE.call(double, 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> DblObjToShort<U> unchecked(DblObjToShortE<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> DblObjToShort<U> uncheckedIO(DblObjToShortE<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> ObjToShort<U> bind(DblObjToShort<U> f, double d)
(d) to the beginning of f, returning a new function
of type (U) -> short.U - the type of the argumentf - the unbound functiond - argument 1(U u) -> short that calls
f.call(d, u) and returns the result.default ObjToShort<U> bind(double d)
(d) to the beginning of this, returning a new function
of type (U) -> short.bind in interface DblObjToShortE<U,RuntimeException>d - argument 1(U u) -> short that calls
this.call(d, u) and returns the result.static <U> DblToShort rbind(DblObjToShort<U> f, U u)
(u) to the end of f, returning a new function
of type (double) -> short.U - the type of the argumentf - the unbound functionu - argument 2(double d) -> short that calls
f.call(d, u) and returns the result.default DblToShort rbind(U u)
(u) to the end of this, returning a new function
of type (double) -> short.rbind in interface DblObjToShortE<U,RuntimeException>u - argument 2(double d) -> short that calls
this.call(d, u) and returns the result.static <U> NilToShort bind(DblObjToShort<U> f, double d, U u)
(d, u) to f, returning a new function
of type () -> short.U - the type of the argumentf - the unbound functiond - argument 1u - argument 2() -> short that calls
f.call(d, u) and returns the result.default NilToShort bind(double d, U u)
(d, u) to this, returning a new function
of type () -> short.bind in interface DblObjToShortE<U,RuntimeException>d - argument 1u - argument 2() -> short that calls
this.call(d, u) and returns the result.Copyright © 2014. All rights reserved.