Enum Class BasicTimeZone.LocalOption
java.lang.Object
java.lang.Enum<BasicTimeZone.LocalOption>
org.graalvm.shadowed.com.ibm.icu.util.BasicTimeZone.LocalOption
- All Implemented Interfaces:
Serializable,Comparable<BasicTimeZone.LocalOption>,Constable
- Enclosing class:
BasicTimeZone
Options used by
BasicTimeZone.getOffsetFromLocal(long, LocalOption, LocalOption, int[])
to specify how to interpret an input time when it does not exist, or when it is ambiguous,
around a time zone transition.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn input time is interpreted as daylight saving time when local time is switched to/from standard time.An input time is interpreted as daylight saving time when local time is switched to/from standard time.An input time is always interpreted as local time before a time zone transition.An input time is always interpreted as local time after a time zone transition.An input time is interpreted as standard time when local time is switched to/from daylight saving time.An input time is interpreted as standard time when local time is switched to/from daylight saving time. -
Method Summary
Modifier and TypeMethodDescriptionstatic BasicTimeZone.LocalOptionReturns the enum constant of this class with the specified name.static BasicTimeZone.LocalOption[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FORMER
An input time is always interpreted as local time before a time zone transition. -
LATTER
An input time is always interpreted as local time after a time zone transition. -
STANDARD_FORMER
An input time is interpreted as standard time when local time is switched to/from daylight saving time. When both sides of a time zone transition are standard time, or daylight saving time, the local time before the transition is used. -
STANDARD_LATTER
An input time is interpreted as standard time when local time is switched to/from daylight saving time. When both sides of a time zone transition are standard time, or daylight saving time, the local time after the transition is used. -
DAYLIGHT_FORMER
An input time is interpreted as daylight saving time when local time is switched to/from standard time. When both sides of a time zone transition are standard time, or daylight saving time, the local time before the transition is used. -
DAYLIGHT_LATTER
An input time is interpreted as daylight saving time when local time is switched to/from standard time. When both sides of a time zone transition are standard time, or daylight saving time, the local time after the transition is used.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-