Enum DisplayOptions.DisplayLength

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

public static enum DisplayOptions.DisplayLength extends Enum<DisplayOptions.DisplayLength>
Represents all the display lengths.
  • Enum Constant Details

    • UNDEFINED

      public static final DisplayOptions.DisplayLength UNDEFINED
      A possible setting for DisplayLength. The DisplayLength context to be used is unknown (this is the default value).
    • LENGTH_FULL

      public static final DisplayOptions.DisplayLength LENGTH_FULL
      Uses full names when generating a locale name, e.g. "United States" for US.
    • LENGTH_SHORT

      public static final DisplayOptions.DisplayLength LENGTH_SHORT
      Use short names when generating a locale name, e.g. "U.S." for US.
  • Field Details

  • Method Details

    • values

      public static DisplayOptions.DisplayLength[] 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 DisplayOptions.DisplayLength 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