Uses of Interface
no.digipost.function.ThrowingConsumer
Packages that use ThrowingConsumer
-
Uses of ThrowingConsumer in no.digipost
Methods in no.digipost that return ThrowingConsumerModifier and TypeMethodDescriptionstatic final <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 ThrowingConsumerModifier and TypeMethodDescriptionstatic <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.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.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 final <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 ThrowingConsumerModifier and TypeMethodDescriptiondefault ThrowingConsumer<T,X> ThrowingConsumer.andThen(ThrowingConsumer<? super T, ? extends X> after) Methods in no.digipost.function with parameters of type ThrowingConsumerModifier and TypeMethodDescriptiondefault 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 ThrowingConsumerModifier and TypeMethodDescription<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 ThrowingConsumerModifierConstructorDescriptionThrowingAutoClosed(T managedObject, ThrowingConsumer<? super T, X> closeOperation)