| Package | Description |
|---|---|
| no.digipost | |
| no.digipost.util |
| Modifier and Type | Method and Description |
|---|---|
static <T,X extends Throwable> |
DiggExceptions.mayThrow(ThrowingRunnable<X> runnable)
Convenience to acquire a
ThrowingRunnable-reference from a lambda expression. |
| Modifier and Type | Method and Description |
|---|---|
static <T,X extends Throwable> |
DiggExceptions.mayThrow(ThrowingRunnable<X> runnable)
Convenience to acquire a
ThrowingRunnable-reference from a lambda expression. |
static void |
DiggExceptions.runUnchecked(ThrowingRunnable<? extends Throwable> runnable)
Immediately
run the given runnable,
and if needed, convert any thrown exceptions to unckecked. |
| Modifier and Type | Method and Description |
|---|---|
<X extends Throwable> |
AtMostOne.orElse(ThrowingRunnable<X> handleUnexpectedMultipleElements)
How to handle if there actually are multiple elements available when only at most one is expected.
|
Copyright © 2018 Digipost. All rights reserved.