| Package | Description |
|---|---|
| net.mintern.functions.unary |
Provides
@FunctionalInterfaces for 1-argument
operations. |
| net.mintern.functions.unary.checked |
Provides
@FunctionalInterfaces for 1-argument
operations that throw checked exceptions. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ObjToDbl<T>
An operation of type
(T) -> double. |
| Modifier and Type | Method and Description |
|---|---|
static <T,E extends Exception> |
ObjToDbl.unchecked(Function<? super E,RuntimeException> toRuntime,
ObjToDblE<T,E> f)
Returns a wrapped version of
f that uses toRuntime to convert any checked
Exception to a RuntimeException. |
static <T,E extends Exception> |
ObjToDbl.unchecked(ObjToDblE<T,E> f)
Returns a wrapped version of
f that wraps any checked Exception with a
RuntimeException. |
static <T,E extends IOException> |
ObjToDbl.uncheckedIO(ObjToDblE<T,E> f)
|
| Modifier and Type | Method and Description |
|---|---|
static <T,E extends Exception> |
ObjToDblE.bind(ObjToDblE<T,E> f,
T t)
Binds
(t) to f, returning a new function
of type () -> double. |
Copyright © 2015. All rights reserved.