Class PreConfiguredClock


  • public class PreConfiguredClock
    extends java.time.Clock
    • 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.ZoneId getZone()  
      java.time.Instant instant()  
      java.time.Clock 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

      • PreConfiguredClock

        public PreConfiguredClock​(java.time.Instant... values)
      • PreConfiguredClock

        public PreConfiguredClock​(java.util.Collection<java.time.Instant> values)
      • PreConfiguredClock

        public PreConfiguredClock​(java.time.Clock clock,
                                  java.util.List<java.time.Instant> values)
    • Method Detail

      • getZone

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

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

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