Enum MeasureUnit.SIPrefix

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ATTO
      SI prefix: atto, 10^-18.
      CENTI
      SI prefix: centi, 10^-2.
      DECI
      SI prefix: deci, 10^-1.
      DEKA
      SI prefix: deka, 10^1.
      EXA
      SI prefix: exa, 10^18.
      FEMTO
      SI prefix: femto, 10^-15.
      GIGA
      SI prefix: giga, 10^9.
      HECTO
      SI prefix: hecto, 10^2.
      KILO
      SI prefix: kilo, 10^3.
      MEGA
      SI prefix: mega, 10^6.
      MICRO
      SI prefix: micro, 10^-6.
      MILLI
      SI prefix: milli, 10^-3.
      NANO
      SI prefix: nano, 10^-9.
      ONE
      The absence of an SI prefix.
      PETA
      SI prefix: peta, 10^15.
      PICO
      SI prefix: pico, 10^-12.
      TERA
      SI prefix: tera, 10^12.
      YOCTO
      SI prefix: yocto, 10^-24.
      YOTTA
      SI prefix: yotta, 10^24.
      ZEPTO
      SI prefix: zepto, 10^-21.
      ZETTA
      SI prefix: zetta, 10^21.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String getIdentifier()
      Deprecated.
      This API is ICU internal only.
      int getPower()
      Returns the power of 10 of the prefix.
      static MeasureUnit.SIPrefix valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static MeasureUnit.SIPrefix[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • values

        public static MeasureUnit.SIPrefix[] 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.SIPrefix c : MeasureUnit.SIPrefix.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.SIPrefix 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
      • getIdentifier

        @Deprecated
        public java.lang.String getIdentifier()
        Deprecated.
        This API is ICU internal only.
        Returns the identifier of the prefix.
      • getPower

        public int getPower()
        Returns the power of 10 of the prefix. For example, if the prefix is "centi", the power will be -2.