public class TestClock extends MutableClock implements SerializeAsToken
A Clock that can have the date advanced for use in demos.
Constructor and Description |
---|
TestClock(java.time.Clock delegateClock)
A Clock that can have the date advanced for use in demos.
|
TestClock()
A Clock that can have the date advanced for use in demos.
|
Modifier and Type | Method and Description |
---|---|
java.time.ZoneId |
getZone() |
java.time.Instant |
instant() |
SerializationToken |
toToken(SerializeAsTokenContext context) |
boolean |
updateDate(java.time.LocalDate date) |
java.time.Clock |
withZone(java.time.ZoneId zone) |
getMutationCount, getMutations, notifyMutationObservers
toToken
public TestClock(java.time.Clock delegateClock)
A Clock that can have the date advanced for use in demos.
public SerializationToken toToken(SerializeAsTokenContext context)
public boolean updateDate(java.time.LocalDate date)
public java.time.Instant instant()
public java.time.Clock withZone(java.time.ZoneId zone)
public java.time.ZoneId getZone()