public enum NameStyle extends Enum<NameStyle>
Defines the style of a timezone name.
| Enum Constant and Description |
|---|
LONG_DAYLIGHT_TIME
Long name in summer time (daylight saving).
|
LONG_GENERIC_TIME
Long name without making a difference between winter or summer time.
|
LONG_STANDARD_TIME
Long name in winter time (standard time).
|
SHORT_DAYLIGHT_TIME
Abbreviation in summer time (daylight saving).
|
SHORT_GENERIC_TIME
Abbreviation without making a difference between winter or summer time.
|
SHORT_STANDARD_TIME
Abbreviation in winter time (standard time).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAbbreviation()
Does this style denote an abbreviation?
|
boolean |
isDaylightSaving()
Does this style denote a daylight saving time?
|
static NameStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NameStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NameStyle SHORT_STANDARD_TIME
Abbreviation in winter time (standard time).
Example: CET
public static final NameStyle LONG_STANDARD_TIME
Long name in winter time (standard time).
Example: Central European Time
public static final NameStyle SHORT_DAYLIGHT_TIME
Abbreviation in summer time (daylight saving).
Example: CEST
public static final NameStyle LONG_DAYLIGHT_TIME
Long name in summer time (daylight saving).
Example: Central European Summer Time
public static final NameStyle SHORT_GENERIC_TIME
Abbreviation without making a difference between winter or summer time.
public static final NameStyle LONG_GENERIC_TIME
Long name without making a difference between winter or summer time.
public static NameStyle[] values()
for (NameStyle c : NameStyle.values()) System.out.println(c);
public static NameStyle 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 boolean isAbbreviation()
Does this style denote an abbreviation?
public boolean isDaylightSaving()
Does this style denote a daylight saving time?
SHORT_DAYLIGHT_TIME,
LONG_DAYLIGHT_TIMECopyright © 2014–2017. All rights reserved.