Uses of Interface
no.digipost.function.ThrowingConsumer
-
Packages that use ThrowingConsumer Package Description no.digipost no.digipost.function no.digipost.time no.digipost.util -
-
Uses of ThrowingConsumer in no.digipost
Methods in no.digipost that return ThrowingConsumer Modifier and Type Method Description static <T,X extends Throwable>
ThrowingConsumer<T,X>DiggExceptions. mayThrow(ThrowingConsumer<T,X> consumer)Convenience to acquire aThrowingConsumer-reference from a lambda expression.Methods in no.digipost with parameters of type ThrowingConsumer Modifier and Type Method Description static <T extends AutoCloseable>
Consumer<T>DiggIO. autoClosing(ThrowingConsumer<T,? extends Exception> consumer)Wrap a consumer which processes anAutoCloseable(typically an InputStream or similar) into a newConsumerwhich will always close theAutoCloseablewhen the given consumer returns, successfully or throwing an exception.static <T> Stream<Exception>DiggBase. forceOnAll(ThrowingConsumer<? super T,? extends Exception> action, Stream<T> instances)Create a stream which will yield the exceptions (if any) from invoking anactionon severalinstances.static <T> Stream<Exception>DiggBase. forceOnAll(ThrowingConsumer<? super T,? extends Exception> action, T... instances)Create a stream which will yield the exceptions (if any) from invoking anactionon severalinstances.static <T,X extends Throwable>
ThrowingConsumer<T,X>DiggExceptions. mayThrow(ThrowingConsumer<T,X> consumer)Convenience to acquire aThrowingConsumer-reference from a lambda expression.static <T,X extends Exception>
ThrowingAutoClosed<T,X>DiggBase. throwingAutoClose(T object, ThrowingConsumer<? super T,X> closeOperation)Wrap an arbitrary object to anAutoCloseablecontainer, and assign an operation to be performed on the wrapped object when callingAutoCloseable.close(). -
Uses of ThrowingConsumer in no.digipost.function
Methods in no.digipost.function that return ThrowingConsumer Modifier and Type Method Description default ThrowingConsumer<T,X>ThrowingConsumer. andThen(ThrowingConsumer<? super T,? extends X> after)Methods in no.digipost.function with parameters of type ThrowingConsumer Modifier and Type Method Description default ThrowingConsumer<T,X>ThrowingConsumer. andThen(ThrowingConsumer<? super T,? extends X> after) -
Uses of ThrowingConsumer in no.digipost.time
Methods in no.digipost.time with parameters of type ThrowingConsumer Modifier and Type Method Description <X extends Exception>
voidControllableClock. doWithTimeAdjusted(Consumer<ClockAdjuster> adjustClock, ThrowingConsumer<Instant,X> action)Perform an action with the clock adjusted, and have the clock reset to it's original state after the action has finished. -
Uses of ThrowingConsumer in no.digipost.util
Constructors in no.digipost.util with parameters of type ThrowingConsumer Constructor Description ThrowingAutoClosed(T managedObject, ThrowingConsumer<? super T,X> closeOperation)
-