Class TzdbZoneRulesCompiler.LeapSecondRule

  • Enclosing class:
    TzdbZoneRulesCompiler

    static final class TzdbZoneRulesCompiler.LeapSecondRule
    extends java.lang.Object
    Class representing a rule line in the TZDB file.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) LocalDate leapDate
      The date of the leap second.
      (package private) byte secondAdjustment
      The adjustment (in seconds), +1 means a second is inserted, -1 means a second is dropped.
    • Constructor Summary

      Constructors 
      Constructor Description
      LeapSecondRule​(LocalDate leapDate, byte secondAdjustment)
      Constructs a rule using fields.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • leapDate

        final LocalDate leapDate
        The date of the leap second.
      • secondAdjustment

        byte secondAdjustment
        The adjustment (in seconds), +1 means a second is inserted, -1 means a second is dropped.
    • Constructor Detail

      • LeapSecondRule

        public LeapSecondRule​(LocalDate leapDate,
                              byte secondAdjustment)
        Constructs a rule using fields.
        Parameters:
        leapDate - Date which has gets leap second adjustment (at the end)
        secondAdjustment - +1 or -1 for inserting or dropping a second