构造器和说明 |
---|
FixedClock()
Creates a new fixed clock using
new as the seed timestamp. |
FixedClock(java.util.Date now)
Creates a new fixed clock using the specified seed timestamp.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.Date |
now()
Returns the clock's current timestamp at the instant the method is invoked.
|
public FixedClock()
new Date
()
as the seed timestamp. All calls to
now()
will always return this seed Date.