Enum Class OffsetIndicator

java.lang.Object
java.lang.Enum<OffsetIndicator>
net.time4j.tz.model.OffsetIndicator
All Implemented Interfaces:
Serializable, Comparable<OffsetIndicator>, java.lang.constant.Constable

public enum OffsetIndicator extends Enum<OffsetIndicator>

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
  • Enum Constant Details

    • UTC_TIME

      public static final OffsetIndicator UTC_TIME
      Reference to UTC-offset.
    • STANDARD_TIME

      public static final OffsetIndicator STANDARD_TIME
      Local standard time (UTC + standard-offset).
    • WALL_TIME

      public static final OffsetIndicator WALL_TIME
      Local time (UTC + standard-offset + dst-offset).
  • Method Details

    • values

      public static OffsetIndicator[] 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

      public static OffsetIndicator valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • parseSymbol

      public static OffsetIndicator parseSymbol(char symbol)

      Interpretes given symbol as indicator.

      The TZDB-repository recognizes following letters:

      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
    • getSymbol

      public char getSymbol()

      Yields the symbol for this indicator as used in tzdb-repository.

      Returns:
      char ("u", "s" or "w")