Class TimeProvider.DefaultTimeProvider

  • All Implemented Interfaces:
    TimeProvider, java.util.function.Supplier<java.time.Instant>
    Enclosing interface:
    TimeProvider

    public static class TimeProvider.DefaultTimeProvider
    extends java.lang.Object
    implements TimeProvider
    • Constructor Detail

      • DefaultTimeProvider

        public DefaultTimeProvider()
    • Method Detail

      • currentInstant

        @Nonnull
        public java.time.Instant currentInstant()
        Description copied from interface: TimeProvider
        Returns the current time.
        Specified by:
        currentInstant in interface TimeProvider
        Returns:
        the current time as an Instant