public enum LeapIndicatorType extends java.lang.Enum<LeapIndicatorType>
| Enum Constant and Description |
|---|
ALARM_CONDITION
Constant for the "Alarm condition (clock not synchronized)" leap indicator type.
|
NEGATIVE_LEAP_SECOND
Constant for the "Last minute has 59 seconds" leap indicator type.
|
NO_WARNING
Constant for the "No leap second warning" leap indicator type.
|
POSITIVE_LEAP_SECOND
Constant for the "Last minute has 61 seconds" leap indicator type.
|
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
name
The name of the leap indicator type.
|
private int |
ordinal
The value/code for the leap indicator type.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
toString() |
static LeapIndicatorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LeapIndicatorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
private java.lang.String name
private int ordinal
public static LeapIndicatorType[] values()
for (LeapIndicatorType c : LeapIndicatorType.values()) System.out.println(c);
public static LeapIndicatorType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static LeapIndicatorType getTypeByOrdinal(int type)
type - public int getOrdinal()
public java.lang.String toString()
toString in class java.lang.Enum<LeapIndicatorType>