Class TimeLeapClock


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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.time.ZoneId getZone()  
      int hashCode()  
      java.time.Instant instant()  
      void leap​(long amountToAdd, java.time.temporal.TemporalUnit unit)  
      long millis()  
      java.lang.String toString()  
      java.time.Clock withZone​(java.time.ZoneId zone)  
      • Methods inherited from class java.time.Clock

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

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

      • TimeLeapClock

        public TimeLeapClock​(java.time.Instant start,
                             java.time.ZoneId zone)
      • TimeLeapClock

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

        public TimeLeapClock()
    • Method Detail

      • withZone

        public java.time.Clock 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
      • leap

        public void leap​(long amountToAdd,
                         java.time.temporal.TemporalUnit unit)
      • millis

        public long millis()
        Overrides:
        millis in class java.time.Clock
      • instant

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.time.Clock
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.time.Clock
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object