Class DefaultClock

java.lang.Object
com.atlassian.confluence.util.DefaultClock
All Implemented Interfaces:
com.atlassian.core.util.Clock

public final class DefaultClock extends Object implements com.atlassian.core.util.Clock
Default implementation of the Clock interface that simply returns a new Date instance.
  • Constructor Details

    • DefaultClock

      public DefaultClock()
  • Method Details

    • getCurrentDate

      public Date getCurrentDate()
      Specified by:
      getCurrentDate in interface com.atlassian.core.util.Clock