Package net.time4j.tz.model
Enum Class OffsetIndicator
- All Implemented Interfaces:
Serializable
,Comparable<OffsetIndicator>
,java.lang.constant.Constable
Helps to interprete a timestamp relative to an timezone offset.
- Since:
- 2.2
- Author:
- Meno Hochschild
- See Also:
SimpleTimeZone.UTC_TIME
,SimpleTimeZone.STANDARD_TIME
,SimpleTimeZone.WALL_TIME
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionLocal standard time (UTC + standard-offset).Reference to UTC-offset.Local time (UTC + standard-offset + dst-offset). -
Method Summary
Modifier and TypeMethodDescriptionchar
Yields the symbol for this indicator as used in tzdb-repository.static OffsetIndicator
parseSymbol(char symbol)
Interpretes given symbol as indicator.static OffsetIndicator
Returns the enum constant of this class with the specified name.static OffsetIndicator[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
UTC_TIME
Reference to UTC-offset. -
STANDARD_TIME
Local standard time (UTC + standard-offset). -
WALL_TIME
Local time (UTC + standard-offset + dst-offset).
-
-
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
-
parseSymbol
Interpretes given symbol as indicator.
The TZDB-repository recognizes following letters:
- u, g, z -
UTC_TIME
- s -
STANDARD_TIME
- w -
WALL_TIME
- Parameters:
symbol
- symbol letter to be parsed as found in TZDB-data- Returns:
- offset indicator
- Throws:
IllegalArgumentException
- if the letter is not supported- Since:
- 2.2
- u, g, z -
-
getSymbol
public char getSymbol()Yields the symbol for this indicator as used in tzdb-repository.
- Returns:
- char ("u", "s" or "w")
-