Class DefaultSystemTime

  • All Implemented Interfaces:
    SystemTime

    public class DefaultSystemTime
    extends java.lang.Object
    implements SystemTime
    Default implementation of SystemTime that gets the system time from System.currentTimeMillis()
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Date getSystemTime()
      Default implementation of SystemTime that gets the system time from System.currentTimeMillis()
      long getSystemTimeMS()
      Default implementation of SystemTime that gets the system time from System.currentTimeMillis()
      • Methods inherited from class java.lang.Object

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

      • DefaultSystemTime

        public DefaultSystemTime()
    • Method Detail

      • getSystemTime

        public java.util.Date getSystemTime()
        Default implementation of SystemTime that gets the system time from System.currentTimeMillis()
        Specified by:
        getSystemTime in interface SystemTime
        Returns:
        current system time in milliseconds in date format.
        See Also:
        SystemTime.getSystemTime()
      • getSystemTimeMS

        public long getSystemTimeMS()
        Default implementation of SystemTime that gets the system time from System.currentTimeMillis()
        Specified by:
        getSystemTimeMS in interface SystemTime
        Returns:
        current system time in milliseconds.
        See Also:
        SystemTime.getSystemTimeMS()