- All Implemented Interfaces:
public class PausableClock
- extends Object
- implements Clock
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public PausableClock(Clock realClock)
public Date time()
- Description copied from interface:
- Tells the time.
- Specified by:
time in interface
- A Date greater or equal to the one returned by the last call to this method. If the time is the same as the last call, the SAME Date object is returned rather than a new, equal one.
public void pause()
public void advanceTo(Date time)
public void resume()
public Date realTime()
Copyright © 2001-2013. All Rights Reserved.