Package com.ethlo.time.internal.util
Class DefaultLeapSecondHandler
- java.lang.Object
-
- com.ethlo.time.internal.util.DefaultLeapSecondHandler
-
- All Implemented Interfaces:
LeapSecondHandler
public class DefaultLeapSecondHandler extends java.lang.Object implements LeapSecondHandler
-
-
Field Summary
Fields Modifier and Type Field Description private java.time.YearMonth
lastLeapKnown
static java.lang.String
LEAP_SECOND_PATH_CSV
private java.util.SortedSet<java.time.YearMonth>
leapSecondMonths
-
Fields inherited from interface com.ethlo.time.internal.util.LeapSecondHandler
LEAP_SECOND_SECONDS
-
-
Constructor Summary
Constructors Constructor Description DefaultLeapSecondHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.YearMonth
getLastKnownLeapSecond()
boolean
isValidLeapSecondDate(java.time.YearMonth needle)
-
-
-
Field Detail
-
LEAP_SECOND_PATH_CSV
public static final java.lang.String LEAP_SECOND_PATH_CSV
- See Also:
- Constant Field Values
-
leapSecondMonths
private final java.util.SortedSet<java.time.YearMonth> leapSecondMonths
-
lastLeapKnown
private final java.time.YearMonth lastLeapKnown
-
-
Method Detail
-
isValidLeapSecondDate
public boolean isValidLeapSecondDate(java.time.YearMonth needle)
- Specified by:
isValidLeapSecondDate
in interfaceLeapSecondHandler
-
getLastKnownLeapSecond
public java.time.YearMonth getLastKnownLeapSecond()
- Specified by:
getLastKnownLeapSecond
in interfaceLeapSecondHandler
-
-