Class CurrentDateTimeProvider

  • All Implemented Interfaces:
    DateTimeProvider<java.time.OffsetDateTime>

    @Singleton
    public class CurrentDateTimeProvider
    extends java.lang.Object
    implements DateTimeProvider<java.time.OffsetDateTime>
    Default implementation of DateTimeProvider.
    Since:
    1.0.0
    Author:
    niravassar
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.time.OffsetDateTime getNow()
      Returns the time to be used for the timestamp.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CurrentDateTimeProvider

        public CurrentDateTimeProvider()
    • Method Detail

      • getNow

        public java.time.OffsetDateTime getNow()
        Description copied from interface: DateTimeProvider
        Returns the time to be used for the timestamp.
        Specified by:
        getNow in interface DateTimeProvider<java.time.OffsetDateTime>
        Returns:
        The resulting time.