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

Added in API level 34
public static final MeasureUnit.MeasurePrefix ATTO

SI prefix: atto, 10^-18.

CENTI

Added in API level 34
public static final MeasureUnit.MeasurePrefix CENTI

SI prefix: centi, 10^-2.

DECI

Added in API level 34
public static final MeasureUnit.MeasurePrefix DECI

SI prefix: deci, 10^-1.

DEKA

Added in API level 34
public static final MeasureUnit.MeasurePrefix DEKA

SI prefix: deka, 10^1.

EXA

Added in API level 34
public static final MeasureUnit.MeasurePrefix EXA

SI prefix: exa, 10^18.

EXBI

Added in API level 34
public static final MeasureUnit.MeasurePrefix EXBI

IEC binary prefix: exbi, 1024^6.

FEMTO

Added in API level 34
public static final MeasureUnit.MeasurePrefix FEMTO

SI prefix: femto, 10^-15.

GIBI

Added in API level 34
public static final MeasureUnit.MeasurePrefix GIBI

IEC binary prefix: gibi, 1024^3.

GIGA

Added in API level 34
public static final MeasureUnit.MeasurePrefix GIGA

SI prefix: giga, 10^9.

HECTO

Added in API level 34
public static final MeasureUnit.MeasurePrefix HECTO

SI prefix: hecto, 10^2.

KIBI

Added in API level 34
public static final MeasureUnit.MeasurePrefix KIBI

IEC binary prefix: kibi, 1024^1.

KILO

Added in API level 34
public static final MeasureUnit.MeasurePrefix KILO

SI prefix: kilo, 10^3.

MEBI

Added in API level 34
public static final MeasureUnit.MeasurePrefix MEBI

IEC binary prefix: mebi, 1024^2.

MEGA

Added in API level 34
public static final MeasureUnit.MeasurePrefix MEGA

SI prefix: mega, 10^6.

MICRO

Added in API level 34
public static final MeasureUnit.MeasurePrefix MICRO

SI prefix: micro, 10^-6.

MILLI

Added in API level 34
public static final MeasureUnit.MeasurePrefix MILLI

SI prefix: milli, 10^-3.

NANO

Added in API level 34
public static final MeasureUnit.MeasurePrefix NANO

SI prefix: nano, 10^-9.

ONE

Added in API level 34
public static final MeasureUnit.MeasurePrefix ONE

The absence of an SI prefix.

PEBI

Added in API level 34
public static final MeasureUnit.MeasurePrefix PEBI

IEC binary prefix: pebi, 1024^5.

PETA

Added in API level 34
public static final MeasureUnit.MeasurePrefix PETA

SI prefix: peta, 10^15.

PICO

Added in API level 34
public static final MeasureUnit.MeasurePrefix PICO

SI prefix: pico, 10^-12.

TEBI

Added in API level 34
public static final MeasureUnit.MeasurePrefix TEBI

IEC binary prefix: tebi, 1024^4.

TERA

Added in API level 34
public static final MeasureUnit.MeasurePrefix TERA

SI prefix: tera, 10^12.

YOBI

Added in API level 34
public static final MeasureUnit.MeasurePrefix YOBI

IEC binary prefix: yobi, 1024^8.

YOCTO

Added in API level 34
public static final MeasureUnit.MeasurePrefix YOCTO

SI prefix: yocto, 10^-24.

YOTTA

Added in API level 34
public static final MeasureUnit.MeasurePrefix YOTTA

SI prefix: yotta, 10^24.

ZEBI

Added in API level 34
public static final MeasureUnit.MeasurePrefix ZEBI

IEC binary prefix: zebi, 1024^7.

ZEPTO

Added in API level 34
public static final MeasureUnit.MeasurePrefix ZEPTO

SI prefix: zepto, 10^-21.

ZETTA

Added in API level 34
public static final MeasureUnit.MeasurePrefix ZETTA

SI prefix: zetta, 10^21.

Public methods

getBase

Added in API level 34
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

Added in API level 34
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

values

public static final MeasurePrefix[] values ()

Returns
MeasurePrefix[]