Enum BasicTimeZone.LocalOption

    • 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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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.
    • Field Detail

      • flagVal

        private int flagVal
    • Constructor Detail

      • LocalOption

        private LocalOption​(int flagVal)
    • 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 name
        java.lang.NullPointerException - if the argument is null