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