| 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 |
ObjToObj<T,R>
An operation of type
(T) -> R. |
| Modifier and Type | Method and Description |
|---|---|
static <T,R,E extends Exception> |
ObjToObj.unchecked(Function<? super E,RuntimeException> toRuntime,
ObjToObjE<T,R,E> f)
Returns a wrapped version of
f that uses toRuntime to convert any checked
Exception to a RuntimeException. |
static <T,R,E extends Exception> |
ObjToObj.unchecked(ObjToObjE<T,R,E> f)
Returns a wrapped version of
f that wraps any checked Exception with a
RuntimeException. |
static <T,R,E extends IOException> |
ObjToObj.uncheckedIO(ObjToObjE<T,R,E> f)
|
| Modifier and Type | Method and Description |
|---|---|
static <T,R,E extends Exception> |
ObjToObjE.bind(ObjToObjE<T,R,E> f,
T t)
Binds
(t) to f, returning a new function
of type () -> R. |
Copyright © 2015. All rights reserved.