Enum MeasureUnit.MeasurePrefix

    • Method Detail

      • values

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

        public static MeasureUnit.MeasurePrefix 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
      • getIdentifier

        @Deprecated
        public String getIdentifier()
        Deprecated.
        This API is ICU internal only.
        Returns the identifier of the prefix.
        Status:
        Internal. This API is ICU internal only.
      • getBase

        public int getBase()
        Returns the base of the prefix. For example: - if the prefix is "centi", the base will be 10. - if the prefix is "gibi", the base will be 1024.
        Status:
        Stable ICU 69.
      • getPower

        public int getPower()
        Returns the power of the prefix. For example: - if the prefix is "centi", the power will be -2. - if the prefix is "gibi", the power will be 3 (for base 1024).
        Status:
        Stable ICU 69.