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