public class MockClock
extends Clock
-
Constructor Summary
Constructors
| Constructor |
Description |
MockClock(long time) |
|
-
Method Summary
| Modifier and Type |
Method |
Description |
long |
getTime() |
|
void |
setTime(long time) |
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MockClock
public MockClock(long time)
-
Method Details
-
getTime
public long getTime()
- Overrides:
getTime in class Clock
-
setTime
public void setTime(long time)