Uses of Interface
java.time.InstantSource
Packages that useInstantSource
Uses ofInstantSource injava.time
Classes injava.time that implementInstantSourceModifier and TypeClassDescriptionclassA clock providing access to the current instant, date and time using a time-zone.Methods injava.time that returnInstantSourceModifier and TypeMethodDescriptionstaticInstantSourceObtains a source that always returns the same instant.staticInstantSourceInstantSource.offset(InstantSource baseSource,Duration offsetDuration) Obtains a source that returns instants from the specified source with the specified duration added.staticInstantSourceInstantSource.system()Obtains a source that returns the current instant using the best available system clock.staticInstantSourceInstantSource.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 injava.time with parameters of typeInstantSourceModifier and TypeMethodDescriptionstaticInstantSourceInstantSource.offset(InstantSource baseSource,Duration offsetDuration) Obtains a source that returns instants from the specified source with the specified duration added.staticInstantSourceInstantSource.tick(InstantSource baseSource,Duration tickDuration) Obtains a source that returns instants from the specified source truncated to the nearest occurrence of the specified duration.