Package com.ibm.icu.text
Enum TimeZoneNames.NameType
- java.lang.Object
-
- java.lang.Enum<TimeZoneNames.NameType>
-
- com.ibm.icu.text.TimeZoneNames.NameType
-
- All Implemented Interfaces:
Serializable
,Comparable<TimeZoneNames.NameType>
- Enclosing class:
- TimeZoneNames
public static enum TimeZoneNames.NameType extends Enum<TimeZoneNames.NameType>
Time zone display name types
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXEMPLAR_LOCATION
Exemplar location name, such as "Los Angeles".LONG_DAYLIGHT
Long display name for daylight saving time, such as "Eastern Daylight Time".LONG_GENERIC
Long display name, such as "Eastern Time".LONG_STANDARD
Long display name for standard time, such as "Eastern Standard Time".SHORT_DAYLIGHT
Short display name for daylight saving time, such as "EDT".SHORT_GENERIC
Short display name, such as "ET".SHORT_STANDARD
Short display name for standard time, such as "EST".
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimeZoneNames.NameType
valueOf(String name)
Returns the enum constant of this type with the specified name.static TimeZoneNames.NameType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LONG_GENERIC
public static final TimeZoneNames.NameType LONG_GENERIC
Long display name, such as "Eastern Time".
-
LONG_STANDARD
public static final TimeZoneNames.NameType LONG_STANDARD
Long display name for standard time, such as "Eastern Standard Time".
-
LONG_DAYLIGHT
public static final TimeZoneNames.NameType LONG_DAYLIGHT
Long display name for daylight saving time, such as "Eastern Daylight Time".
-
SHORT_GENERIC
public static final TimeZoneNames.NameType SHORT_GENERIC
Short display name, such as "ET".
-
SHORT_STANDARD
public static final TimeZoneNames.NameType SHORT_STANDARD
Short display name for standard time, such as "EST".
-
SHORT_DAYLIGHT
public static final TimeZoneNames.NameType SHORT_DAYLIGHT
Short display name for daylight saving time, such as "EDT".
-
EXEMPLAR_LOCATION
public static final TimeZoneNames.NameType EXEMPLAR_LOCATION
Exemplar location name, such as "Los Angeles".
-
-
Method Detail
-
values
public static TimeZoneNames.NameType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TimeZoneNames.NameType c : TimeZoneNames.NameType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeZoneNames.NameType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-