Enum DateTimePatternGenerator.DisplayWidth

java.lang.Object
java.lang.Enum<DateTimePatternGenerator.DisplayWidth>
com.ibm.icu.text.DateTimePatternGenerator.DisplayWidth
All Implemented Interfaces:
Serializable, Comparable<DateTimePatternGenerator.DisplayWidth>, java.lang.constant.Constable
Enclosing class:
DateTimePatternGenerator

public static enum DateTimePatternGenerator.DisplayWidth extends Enum<DateTimePatternGenerator.DisplayWidth>
Field display name width constants for getFieldDisplayName
  • Enum Constant Details

  • Field Details

    • COUNT

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

      private final String cldrKey
  • Constructor Details

    • DisplayWidth

      private DisplayWidth(String cldrKey)
  • Method Details

    • values

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

      private String cldrKey()