| Package | Description |
|---|---|
| no.digipost | |
| no.digipost.function | |
| no.digipost.jdbc | |
| no.digipost.time |
| 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) |
| Modifier and Type | Method and Description |
|---|---|
<T,X extends Exception> |
ControllableClock.getWithTimeAdjusted(Consumer<TimeControllable> adjustClock,
ThrowingFunction<Instant,T,X> resolveValue)
Resolve a value with the clock adjusted, and have the clock reset to it's original state
after the operation has finished.
|
Copyright © 2019 Digipost. All rights reserved.