public class FakeClock extends SystemNanoClock
Clock that is manually controlled.| Constructor and Description |
|---|
FakeClock() |
FakeClock(long initialTime,
TimeUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
FakeClock |
forward(long delta,
TimeUnit unit) |
ZoneId |
getZone() |
Instant |
instant() |
long |
millis() |
long |
nanos() |
Clock |
withZone(ZoneId zone) |
equals, fixed, hashCode, offset, system, systemDefaultZone, systemUTC, tick, tickMinutes, tickSecondspublic FakeClock()
public FakeClock(long initialTime,
TimeUnit unit)
public ZoneId getZone()
getZone in class SystemNanoClockpublic Clock withZone(ZoneId zone)
withZone in class SystemNanoClockpublic Instant instant()
instant in class SystemNanoClockpublic long nanos()
nanos in class SystemNanoClockCopyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.