org.apache.directory.server.ntp.messages
Class LeapIndicatorType
java.lang.Object
org.apache.directory.server.ntp.messages.LeapIndicatorType
- All Implemented Interfaces:
- java.lang.Comparable
public final class LeapIndicatorType
- extends java.lang.Object
- implements java.lang.Comparable
Leap Indicator (LI): This is a two-bit code warning of an impending
leap second to be inserted/deleted in the last minute of the current
day, with bit 0 and bit 1, respectively, coded as follows:
LI Value Meaning
-------------------------------------------------------
00 0 no warning
01 1 last minute has 61 seconds
10 2 last minute has 59 seconds)
11 3 alarm condition (clock not synchronized)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NO_WARNING
public static final LeapIndicatorType NO_WARNING
- Enumeration elements are constructed once upon class loading.
Order of appearance here determines the order of compareTo.
POSITIVE_LEAP_SECOND
public static final LeapIndicatorType POSITIVE_LEAP_SECOND
NEGATIVE_LEAP_SECOND
public static final LeapIndicatorType NEGATIVE_LEAP_SECOND
ALARM_CONDITION
public static final LeapIndicatorType ALARM_CONDITION
VALUES
public static final java.util.List VALUES
getTypeByOrdinal
public static LeapIndicatorType getTypeByOrdinal(int type)
getOrdinal
public int getOrdinal()
compareTo
public int compareTo(java.lang.Object that)
- Specified by:
compareTo
in interface java.lang.Comparable
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.