Constructor and Description |
---|
ManualClock(long init)
Construct a new clock setting the current time to
init . |
public ManualClock(long init)
init
.init
- Number of milliseconds to use as the initial time.public void set(long t)
t
.t
- Number of milliseconds to use for the current time.public long now()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object