public final class LeapIndicatorType extends Object implements Comparable<LeapIndicatorType>
Modifier and Type | Field and Description |
---|---|
static LeapIndicatorType |
ALARM_CONDITION
Constant for the "Alarm condition (clock not synchronized)" leap indicator type.
|
static LeapIndicatorType |
NEGATIVE_LEAP_SECOND
Constant for the "Last minute has 59 seconds" leap indicator type.
|
static LeapIndicatorType |
NO_WARNING
Constant for the "No leap second warning" leap indicator type.
|
static LeapIndicatorType |
POSITIVE_LEAP_SECOND
Constant for the "Last minute has 61 seconds" leap indicator type.
|
static List<LeapIndicatorType> |
VALUES
A list of all the leap indicator type constants.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(LeapIndicatorType that) |
int |
getOrdinal()
Returns the number associated with this leap indicator type.
|
static LeapIndicatorType |
getTypeByOrdinal(int type)
Returns the leap indicator type when specified by its ordinal.
|
String |
toString() |
public static final LeapIndicatorType NO_WARNING
public static final LeapIndicatorType POSITIVE_LEAP_SECOND
public static final LeapIndicatorType NEGATIVE_LEAP_SECOND
public static final LeapIndicatorType ALARM_CONDITION
public static final List<LeapIndicatorType> VALUES
public static LeapIndicatorType getTypeByOrdinal(int type)
type
- public int getOrdinal()
public int compareTo(LeapIndicatorType that)
compareTo
in interface Comparable<LeapIndicatorType>
Copyright © 2003–2013 The Apache Software Foundation. All rights reserved.