Class MutableClock
- java.lang.Object
-
- java.time.Clock
-
- com.netflix.spinnaker.kork.test.time.MutableClock
-
public class MutableClock extends java.time.Clock
-
-
Constructor Summary
Constructors Constructor Description MutableClock()MutableClock(java.time.Instant instant)MutableClock(java.time.Instant instant, java.time.ZoneId zone)MutableClock(java.time.ZoneId zone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.ZoneIdgetZone()voidincrementBy(java.time.temporal.TemporalAmount amount)java.time.Instantinstant()voidinstant(java.time.Instant newInstant)MutableClockwithZone(java.time.ZoneId zone)
-
-
-
Method Detail
-
withZone
public MutableClock withZone(java.time.ZoneId zone)
- Specified by:
withZonein classjava.time.Clock
-
getZone
public java.time.ZoneId getZone()
- Specified by:
getZonein classjava.time.Clock
-
instant
public java.time.Instant instant()
- Specified by:
instantin classjava.time.Clock
-
incrementBy
public void incrementBy(java.time.temporal.TemporalAmount amount)
-
instant
public void instant(java.time.Instant newInstant)
-
-