Enum DateTimePatternGenerator.DisplayWidth

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ABBREVIATED
      An abbreviated field name (may be the same as the wide version, if short enough)
      NARROW
      The shortest possible field name (may be the same as the abbreviated version)
      WIDE
      The full field name
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String cldrKey  
      private static int COUNT
      Deprecated.
      This API is ICU internal only.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private DisplayWidth​(java.lang.String cldrKey)  
    • Field Detail

      • COUNT

        @Deprecated
        private static int COUNT
        Deprecated.
        This API is ICU internal only.
        The count of available widths
      • cldrKey

        private final java.lang.String cldrKey
    • Constructor Detail

      • DisplayWidth

        private DisplayWidth​(java.lang.String cldrKey)
    • Method Detail

      • values

        public static DateTimePatternGenerator.DisplayWidth[] 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 (DateTimePatternGenerator.DisplayWidth c : DateTimePatternGenerator.DisplayWidth.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DateTimePatternGenerator.DisplayWidth 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
      • cldrKey

        private java.lang.String cldrKey()