com.notuvy.util
Class WallClock
java.lang.Object
com.notuvy.util.WallClock
- Direct Known Subclasses:
- WallClock.Manual
public abstract class WallClock
- extends Object
A representation of the current time.
The default implementation is a trivial encapsulation of the system time.
Its purpose is to be a hook for unit tests to replace with explicit
time control.
- Author:
- murali
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.apache.log4j.Logger LOG
SYSTEM
public static final WallClock SYSTEM
STRING_FORMAT
public static final String STRING_FORMAT
- See Also:
- Constant Field Values
FORMATTER
public static final DateFormat FORMATTER
WallClock
public WallClock()
currentTimeMillis
public static long currentTimeMillis()
currentDate
public static Date currentDate()
restoreSystem
public static void restoreSystem()
createManual
public static WallClock.Manual createManual()
getInstance
protected static WallClock getInstance()
getTimeMillis
protected abstract long getTimeMillis()
Copyright © 2013. All Rights Reserved.