Package uk.co.mruoc.test.clock
Class PreConfiguredClock
- java.lang.Object
-
- java.time.Clock
-
- uk.co.mruoc.test.clock.PreConfiguredClock
-
public class PreConfiguredClock extends java.time.Clock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPreConfiguredClock.IncrementOrReset
-
Constructor Summary
Constructors Constructor Description PreConfiguredClock(java.time.Clock clock, java.util.List<java.time.Instant> values)PreConfiguredClock(java.time.Instant... values)PreConfiguredClock(java.util.Collection<java.time.Instant> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.ZoneIdgetZone()java.time.Instantinstant()java.time.ClockwithZone(java.time.ZoneId zone)
-
-
-
Method Detail
-
getZone
public java.time.ZoneId getZone()
- Specified by:
getZonein classjava.time.Clock
-
withZone
public java.time.Clock withZone(java.time.ZoneId zone)
- Specified by:
withZonein classjava.time.Clock
-
instant
public java.time.Instant instant()
- Specified by:
instantin classjava.time.Clock
-
-