| Package | Description |
|---|---|
| no.digipost | |
| no.digipost.function | |
| no.digipost.jdbc |
| Modifier and Type | Method and Description |
|---|---|
static <T,R,X extends Throwable> |
DiggExceptions.mayThrow(ThrowingFunction<T,R,X> function)
Convenience to acquire a
ThrowingFunction-reference from a lambda expression. |
| Modifier and Type | Method and Description |
|---|---|
static <T,R> R |
DiggExceptions.applyUnchecked(ThrowingFunction<T,R,? extends Throwable> function,
T argument)
Immediately
apply the given function with the given argument,
and if needed, convert any thrown exceptions to unckecked. |
static <T extends AutoCloseable,R> |
DiggIO.autoClosing(ThrowingFunction<T,R,? extends Exception> function)
Wrap a function which yields a result from processing an
AutoCloseable
(typically an InputStream or similar) into a new Function which will always close
the AutoCloseable when the given function returns, successfully or throwing an exception. |
static <T,R,X extends Throwable> |
DiggExceptions.mayThrow(ThrowingFunction<T,R,X> function)
Convenience to acquire a
ThrowingFunction-reference from a lambda expression. |
| Modifier and Type | Method and Description |
|---|---|
default <V> ThrowingFunction<T,V,X> |
ThrowingFunction.andThen(ThrowingFunction<? super R,V,? extends X> after) |
| Modifier and Type | Method and Description |
|---|---|
default <V> ThrowingFunction<T,V,X> |
ThrowingFunction.andThen(ThrowingFunction<? super R,V,? extends X> after) |
default <V> ThrowingBiFunction<T,U,V,X> |
ThrowingBiFunction.andThen(ThrowingFunction<? super R,V,? extends X> after) |
| Modifier and Type | Method and Description |
|---|---|
static <R> RowMapper<R> |
RowMapper.of(ThrowingFunction<ResultSet,R,SQLException> mapper) |
Copyright © 2018 Digipost. All rights reserved.