Uses of Interface
java.time.InstantSource
Packages that use InstantSource
-
Uses of InstantSource in java.time
Classes in java.time that implement InstantSourceModifier and TypeClassDescriptionclassA clock providing access to the current instant, date and time using a time-zone.Methods in java.time that return InstantSourceModifier and TypeMethodDescriptionstatic InstantSourceObtains a source that always returns the same instant.static InstantSourceInstantSource.offset(InstantSource baseSource, Duration offsetDuration) Obtains a source that returns instants from the specified source with the specified duration added.static InstantSourceInstantSource.system()Obtains a source that returns the current instant using the best available system clock.static InstantSourceInstantSource.tick(InstantSource baseSource, Duration tickDuration) Obtains a source that returns instants from the specified source truncated to the nearest occurrence of the specified duration.Methods in java.time with parameters of type InstantSourceModifier and TypeMethodDescriptionstatic InstantSourceInstantSource.offset(InstantSource baseSource, Duration offsetDuration) Obtains a source that returns instants from the specified source with the specified duration added.static InstantSourceInstantSource.tick(InstantSource baseSource, Duration tickDuration) Obtains a source that returns instants from the specified source truncated to the nearest occurrence of the specified duration.