Uses of Interface
no.digipost.time.ClockAdjuster
Packages that use ClockAdjuster
-
Uses of ClockAdjuster in no.digipost.time
Classes in no.digipost.time that implement ClockAdjusterModifier and TypeClassDescriptionfinal classA controllableClock, typically intended for use in testing.Method parameters in no.digipost.time with type arguments of type ClockAdjusterModifier 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.<T,X extends Exception>
TControllableClock.getWithTimeAdjusted(Consumer<ClockAdjuster> 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.