Package com.ibm.icu.text
Enum TimeZoneNames.NameType
- All Implemented Interfaces:
Serializable
,Comparable<TimeZoneNames.NameType>
,java.lang.constant.Constable
- Enclosing class:
TimeZoneNames
Time zone display name types
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionExemplar location name, such as "Los Angeles".Long display name for daylight saving time, such as "Eastern Daylight Time".Long display name, such as "Eastern Time".Long display name for standard time, such as "Eastern Standard Time".Short display name for daylight saving time, such as "EDT".Short display name, such as "ET".Short display name for standard time, such as "EST". -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeZoneNames.NameType
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 Details
-
LONG_GENERIC
Long display name, such as "Eastern Time". -
LONG_STANDARD
Long display name for standard time, such as "Eastern Standard Time". -
LONG_DAYLIGHT
Long display name for daylight saving time, such as "Eastern Daylight Time". -
SHORT_GENERIC
Short display name, such as "ET". -
SHORT_STANDARD
Short display name for standard time, such as "EST". -
SHORT_DAYLIGHT
Short display name for daylight saving time, such as "EDT". -
EXEMPLAR_LOCATION
Exemplar location name, such as "Los Angeles".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-