public enum LeapIndicatorType extends 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 | 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.
|
String |
toString() |
static LeapIndicatorType |
valueOf(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
public static LeapIndicatorType[] values()
for (LeapIndicatorType c : LeapIndicatorType.values()) System.out.println(c);
public static LeapIndicatorType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static LeapIndicatorType getTypeByOrdinal(int type)
type
- public int getOrdinal()
public String toString()
toString
in class Enum<LeapIndicatorType>
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.