Package com.ibm.icu.util
Enum BasicTimeZone.LocalOption
- java.lang.Object
-
- java.lang.Enum<BasicTimeZone.LocalOption>
-
- com.ibm.icu.util.BasicTimeZone.LocalOption
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BasicTimeZone.LocalOption>
- Enclosing class:
- BasicTimeZone
public static enum BasicTimeZone.LocalOption extends java.lang.Enum<BasicTimeZone.LocalOption>
Options used byBasicTimeZone.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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAYLIGHT_FORMER
An input time is interpreted as daylight saving time when local time is switched to/from standard time.DAYLIGHT_LATTER
An input time is interpreted as daylight saving time when local time is switched to/from standard time.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.STANDARD_LATTER
An input time is interpreted as standard time when local time is switched to/from daylight saving time.
-
Field Summary
Fields Modifier and Type Field Description private int
flagVal
-
Constructor Summary
Constructors Modifier Constructor Description private
LocalOption(int flagVal)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BasicTimeZone.LocalOption
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BasicTimeZone.LocalOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FORMER
public static final BasicTimeZone.LocalOption FORMER
An input time is always interpreted as local time before a time zone transition.
-
LATTER
public static final BasicTimeZone.LocalOption LATTER
An input time is always interpreted as local time after a time zone transition.
-
STANDARD_FORMER
public static final BasicTimeZone.LocalOption 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
public static final BasicTimeZone.LocalOption 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
public static final BasicTimeZone.LocalOption 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
public static final BasicTimeZone.LocalOption 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 Detail
-
values
public static BasicTimeZone.LocalOption[] 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 (BasicTimeZone.LocalOption c : BasicTimeZone.LocalOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BasicTimeZone.LocalOption valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-