Enum BasicTimeZone.LocalOption

java.lang.Object
java.lang.Enum<BasicTimeZone.LocalOption>
com.ibm.icu.util.BasicTimeZone.LocalOption
All Implemented Interfaces:
Serializable, Comparable<BasicTimeZone.LocalOption>, java.lang.constant.Constable
Enclosing class:
BasicTimeZone

public static enum BasicTimeZone.LocalOption extends Enum<BasicTimeZone.LocalOption>
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 Constants
    Enum Constant
    Description
    An 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.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    LocalOption(int flagVal)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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.
  • Field Details

    • flagVal

      private int flagVal
  • Constructor Details

    • LocalOption

      private LocalOption(int flagVal)
  • Method Details

    • values

      public static BasicTimeZone.LocalOption[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static BasicTimeZone.LocalOption valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null