Enum DisplayOptions.DisplayLength

    • Enum Constant Detail

      • 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).
        Status:
        Stable ICU 72.
      • LENGTH_FULL

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

        public static final DisplayOptions.DisplayLength LENGTH_SHORT
        Use short names when generating a locale name, e.g. "U.S." for US.
        Status:
        Stable ICU 72.
    • Method Detail

      • values

        public static DisplayOptions.DisplayLength[] 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 (DisplayOptions.DisplayLength c : DisplayOptions.DisplayLength.values())
            System.out.println(c);
        
        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