| Package | Description |
|---|---|
| no.digipost | |
| no.digipost.function | |
| no.digipost.util |
| Modifier and Type | Method and Description |
|---|---|
static <T,X extends Throwable> |
DiggExceptions.mayThrow(ThrowingConsumer<T,X> consumer)
Convenience to acquire a
ThrowingConsumer-reference from a lambda expression. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends AutoCloseable> |
DiggIO.autoClosing(ThrowingConsumer<T,? extends Exception> consumer)
Wrap a consumer which processes an
AutoCloseable
(typically an InputStream or similar) into a new Consumer which will always close
the AutoCloseable when the given consumer returns, successfully or throwing an exception. |
static <T,X extends Throwable> |
DiggExceptions.mayThrow(ThrowingConsumer<T,X> consumer)
Convenience to acquire a
ThrowingConsumer-reference from a lambda expression. |
static <T,X extends Exception> |
DiggBase.throwingAutoClose(T object,
ThrowingConsumer<? super T,X> closeOperation)
Wrap an arbitrary object to an
AutoCloseable container, and assign an operation to be
performed on the wrapped object when calling AutoCloseable.close(). |
| Modifier and Type | Method and Description |
|---|---|
default ThrowingConsumer<T,X> |
ThrowingConsumer.andThen(ThrowingConsumer<? super T,? extends X> after) |
| Modifier and Type | Method and Description |
|---|---|
default ThrowingConsumer<T,X> |
ThrowingConsumer.andThen(ThrowingConsumer<? super T,? extends X> after) |
| Constructor and Description |
|---|
ThrowingAutoClosed(T managedObject,
ThrowingConsumer<? super T,X> closeOperation) |
Copyright © 2018 Digipost. All rights reserved.