MeasureUnit.MeasurePrefix
public
static
final
enum
MeasureUnit.MeasurePrefix
extends Enum<MeasureUnit.MeasurePrefix>
java.lang.Object | ||
↳ | java.lang.Enum<android.icu.util.MeasureUnit.MeasurePrefix> | |
↳ | android.icu.util.MeasureUnit.MeasurePrefix |
Enumeration for SI and binary prefixes, e.g. "kilo-", "nano-", "mebi-".
Summary
Enum values | |
---|---|
MeasureUnit.MeasurePrefix |
ATTO
SI prefix: atto, 10^-18. |
MeasureUnit.MeasurePrefix |
CENTI
SI prefix: centi, 10^-2. |
MeasureUnit.MeasurePrefix |
DECI
SI prefix: deci, 10^-1. |
MeasureUnit.MeasurePrefix |
DEKA
SI prefix: deka, 10^1. |
MeasureUnit.MeasurePrefix |
EXA
SI prefix: exa, 10^18. |
MeasureUnit.MeasurePrefix |
EXBI
IEC binary prefix: exbi, 1024^6. |
MeasureUnit.MeasurePrefix |
FEMTO
SI prefix: femto, 10^-15. |
MeasureUnit.MeasurePrefix |
GIBI
IEC binary prefix: gibi, 1024^3. |
MeasureUnit.MeasurePrefix |
GIGA
SI prefix: giga, 10^9. |
MeasureUnit.MeasurePrefix |
HECTO
SI prefix: hecto, 10^2. |
MeasureUnit.MeasurePrefix |
KIBI
IEC binary prefix: kibi, 1024^1. |
MeasureUnit.MeasurePrefix |
KILO
SI prefix: kilo, 10^3. |
MeasureUnit.MeasurePrefix |
MEBI
IEC binary prefix: mebi, 1024^2. |
MeasureUnit.MeasurePrefix |
MEGA
SI prefix: mega, 10^6. |
MeasureUnit.MeasurePrefix |
MICRO
SI prefix: micro, 10^-6. |
MeasureUnit.MeasurePrefix |
MILLI
SI prefix: milli, 10^-3. |
MeasureUnit.MeasurePrefix |
NANO
SI prefix: nano, 10^-9. |
MeasureUnit.MeasurePrefix |
ONE
The absence of an SI prefix. |
MeasureUnit.MeasurePrefix |
PEBI
IEC binary prefix: pebi, 1024^5. |
MeasureUnit.MeasurePrefix |
PETA
SI prefix: peta, 10^15. |
MeasureUnit.MeasurePrefix |
PICO
SI prefix: pico, 10^-12. |
MeasureUnit.MeasurePrefix |
TEBI
IEC binary prefix: tebi, 1024^4. |
MeasureUnit.MeasurePrefix |
TERA
SI prefix: tera, 10^12. |
MeasureUnit.MeasurePrefix |
YOBI
IEC binary prefix: yobi, 1024^8. |
MeasureUnit.MeasurePrefix |
YOCTO
SI prefix: yocto, 10^-24. |
MeasureUnit.MeasurePrefix |
YOTTA
SI prefix: yotta, 10^24. |
MeasureUnit.MeasurePrefix |
ZEBI
IEC binary prefix: zebi, 1024^7. |
MeasureUnit.MeasurePrefix |
ZEPTO
SI prefix: zepto, 10^-21. |
MeasureUnit.MeasurePrefix |
ZETTA
SI prefix: zetta, 10^21. |
Public methods | |
---|---|
int
|
getBase()
Returns the base of the prefix. |
int
|
getPower()
Returns the power of the prefix. |
static
MeasureUnit.MeasurePrefix
|
valueOf(String name)
|
static
final
MeasurePrefix[]
|
values()
|
Inherited methods | |
---|---|
Enum values
ATTO
public static final MeasureUnit.MeasurePrefix ATTO
SI prefix: atto, 10^-18.
CENTI
public static final MeasureUnit.MeasurePrefix CENTI
SI prefix: centi, 10^-2.
DECI
public static final MeasureUnit.MeasurePrefix DECI
SI prefix: deci, 10^-1.
DEKA
public static final MeasureUnit.MeasurePrefix DEKA
SI prefix: deka, 10^1.
EXBI
public static final MeasureUnit.MeasurePrefix EXBI
IEC binary prefix: exbi, 1024^6.
FEMTO
public static final MeasureUnit.MeasurePrefix FEMTO
SI prefix: femto, 10^-15.
GIBI
public static final MeasureUnit.MeasurePrefix GIBI
IEC binary prefix: gibi, 1024^3.
GIGA
public static final MeasureUnit.MeasurePrefix GIGA
SI prefix: giga, 10^9.
HECTO
public static final MeasureUnit.MeasurePrefix HECTO
SI prefix: hecto, 10^2.
KIBI
public static final MeasureUnit.MeasurePrefix KIBI
IEC binary prefix: kibi, 1024^1.
KILO
public static final MeasureUnit.MeasurePrefix KILO
SI prefix: kilo, 10^3.
MEBI
public static final MeasureUnit.MeasurePrefix MEBI
IEC binary prefix: mebi, 1024^2.
MEGA
public static final MeasureUnit.MeasurePrefix MEGA
SI prefix: mega, 10^6.
MICRO
public static final MeasureUnit.MeasurePrefix MICRO
SI prefix: micro, 10^-6.
MILLI
public static final MeasureUnit.MeasurePrefix MILLI
SI prefix: milli, 10^-3.
NANO
public static final MeasureUnit.MeasurePrefix NANO
SI prefix: nano, 10^-9.
ONE
public static final MeasureUnit.MeasurePrefix ONE
The absence of an SI prefix.
PEBI
public static final MeasureUnit.MeasurePrefix PEBI
IEC binary prefix: pebi, 1024^5.
PETA
public static final MeasureUnit.MeasurePrefix PETA
SI prefix: peta, 10^15.
PICO
public static final MeasureUnit.MeasurePrefix PICO
SI prefix: pico, 10^-12.
TEBI
public static final MeasureUnit.MeasurePrefix TEBI
IEC binary prefix: tebi, 1024^4.
TERA
public static final MeasureUnit.MeasurePrefix TERA
SI prefix: tera, 10^12.
YOBI
public static final MeasureUnit.MeasurePrefix YOBI
IEC binary prefix: yobi, 1024^8.
YOCTO
public static final MeasureUnit.MeasurePrefix YOCTO
SI prefix: yocto, 10^-24.
YOTTA
public static final MeasureUnit.MeasurePrefix YOTTA
SI prefix: yotta, 10^24.
ZEBI
public static final MeasureUnit.MeasurePrefix ZEBI
IEC binary prefix: zebi, 1024^7.
ZEPTO
public static final MeasureUnit.MeasurePrefix ZEPTO
SI prefix: zepto, 10^-21.
ZETTA
public static final MeasureUnit.MeasurePrefix ZETTA
SI prefix: zetta, 10^21.
Public methods
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.
Returns | |
---|---|
int |
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).
Returns | |
---|---|
int |
valueOf
public static MeasureUnit.MeasurePrefix valueOf (String name)
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
MeasureUnit.MeasurePrefix |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-04 UTC.