| 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> ToLongFunction<T> |
Sneaky.toLongFunction(CheckedToLongFunction<T> function) |
Wrap a
CheckedToLongFunction in a ToLongFunction. |
static <T> ToLongFunction<T> |
Unchecked.toLongFunction(CheckedToLongFunction<T> function) |
Wrap a
CheckedToLongFunction in a ToLongFunction. |
static <T> ToLongFunction<T> |
Unchecked.toLongFunction(CheckedToLongFunction<T> function,
Consumer<Throwable> handler) |
Wrap a
CheckedToLongFunction in a ToLongFunction with a custom handler for checked exceptions. |
| Modifier and Type | Method | Description |
|---|---|---|
static <T> ToLongFunction<T> |
CheckedToLongFunction.sneaky(CheckedToLongFunction<T> function) |
|
static <T> ToLongFunction<T> |
CheckedToLongFunction.unchecked(CheckedToLongFunction<T> function) |
|
static <T> ToLongFunction<T> |
CheckedToLongFunction.unchecked(CheckedToLongFunction<T> function,
Consumer<Throwable> handler) |
Copyright © 2018. All rights reserved.