| Package | Description |
|---|---|
| org.jooq.lambda |
This package contains useful extensions for interoperation with Java 8's lambda expressions and
FunctionalInterface types. |
| org.jooq.lambda.fi.util.function |
This package contains duplicates of the JDK's
FunctionalInterface types
from the java.util.function package, allowing to throw checked Exceptions
that can be handled in Unchecked. |
| Modifier and Type | Method | Description |
|---|---|---|
static <T,R> Function<T,R> |
Sneaky.function(CheckedFunction<T,R> function) |
Wrap a
CheckedFunction in a Function. |
static <T,R> Function<T,R> |
Unchecked.function(CheckedFunction<T,R> function) |
Wrap a
CheckedFunction in a Function. |
static <T,R> Function<T,R> |
Unchecked.function(CheckedFunction<T,R> function,
Consumer<Throwable> handler) |
Wrap a
CheckedFunction in a Function with a custom handler for checked exceptions. |
| Modifier and Type | Interface | Description |
|---|---|---|
interface |
CheckedUnaryOperator<T> |
A
UnaryOperator that allows for checked exceptions. |
| Modifier and Type | Method | Description |
|---|---|---|
static <T,R> Function<T,R> |
CheckedFunction.sneaky(CheckedFunction<T,R> function) |
|
static <T,R> Function<T,R> |
CheckedFunction.unchecked(CheckedFunction<T,R> function) |
|
static <T,R> Function<T,R> |
CheckedFunction.unchecked(CheckedFunction<T,R> function,
Consumer<Throwable> handler) |
Copyright © 2018. All rights reserved.