Uses of Interface
no.digipost.time.ClockAdjuster
-
Packages that use ClockAdjuster Package Description no.digipost.time -
-
Uses of ClockAdjuster in no.digipost.time
Classes in no.digipost.time that implement ClockAdjuster Modifier and Type Class Description classControllableClockA controllableClock, typically intended for use in testing.Method parameters in no.digipost.time with type arguments of type ClockAdjuster 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.<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.
-