Class MutableClock


  • public class MutableClock
    extends java.time.Clock
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.time.ZoneId getZone()  
      void incrementBy​(java.time.temporal.TemporalAmount amount)  
      java.time.Instant instant()  
      void instant​(java.time.Instant newInstant)  
      MutableClock withZone​(java.time.ZoneId zone)  
      • Methods inherited from class java.time.Clock

        equals, fixed, hashCode, millis, offset, system, systemDefaultZone, systemUTC, tick, tickMillis, tickMinutes, tickSeconds
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MutableClock

        public MutableClock​(java.time.Instant instant,
                            java.time.ZoneId zone)
      • MutableClock

        public MutableClock​(java.time.Instant instant)
      • MutableClock

        public MutableClock​(java.time.ZoneId zone)
      • MutableClock

        public MutableClock()
    • Method Detail

      • withZone

        public MutableClock withZone​(java.time.ZoneId zone)
        Specified by:
        withZone in class java.time.Clock
      • getZone

        public java.time.ZoneId getZone()
        Specified by:
        getZone in class java.time.Clock
      • instant

        public java.time.Instant instant()
        Specified by:
        instant in class java.time.Clock
      • incrementBy

        public void incrementBy​(java.time.temporal.TemporalAmount amount)
      • instant

        public void instant​(java.time.Instant newInstant)