Added in API level 24

MeasureUnit


open class MeasureUnit : Serializable
kotlin.Any
   ↳ android.icu.util.MeasureUnit

A unit such as length, mass, volume, currency, etc. A unit is coupled with a numeric amount to produce a Measure. MeasureUnit objects are immutable. All subclasses must guarantee that. (However, subclassing is discouraged.)

Summary

Nested classes

Enumeration for unit complexity.

Enumeration for SI and binary prefixes, e.

Public methods
open Boolean
equals(other: Any?)

Indicates whether some other object is "equal to" this one.

open static MeasureUnit!
forIdentifier(identifier: String!)

Construct a MeasureUnit from a CLDR Core Unit Identifier, defined in UTS 35.

open static MutableSet<MeasureUnit!>!

For the given type, return the available units.

open static MutableSet<MeasureUnit!>!

Get all of the available units.

open static MutableSet<String!>!

Get all of the available units' types.

open MeasureUnit.Complexity!

Compute the complexity of the unit.

open Int

Returns the dimensionality (power) of this MeasureUnit.

open String!

Get CLDR Unit Identifier for this MeasureUnit, as defined in UTS 35.

open MeasureUnit.MeasurePrefix!

Returns the current SI or binary prefix of this SINGLE unit.

open String!

Get the subType, such as “foot”.

open String!

Get the type, such as "length".

open Int

Returns a hash code value for the object.

open MeasureUnit!

Computes the product of this unit with another unit.

open MeasureUnit!

Computes the reciprocal of this MeasureUnit, with the numerator and denominator flipped.

open MutableList<MeasureUnit!>!

Returns the list of SINGLE units contained within a sequence of COMPOUND units.

open String

Returns a string representation of the object.

open MeasureUnit!
withDimensionality(dimensionality: Int)

Creates a MeasureUnit which is this SINGLE unit augmented with the specified dimensionality (power).

open MeasureUnit!

Creates a MeasureUnit which is this SINGLE unit augmented with the specified prefix.

Properties
static MeasureUnit!

Constant for unit of area: acre

static MeasureUnit!

Constant for unit of volume: acre-foot

static MeasureUnit!

Constant for unit of electric: ampere

static MeasureUnit!

Constant for unit of angle: arc-minute

static MeasureUnit!

Constant for unit of angle: arc-second

static MeasureUnit!

Constant for unit of length: astronomical-unit

static MeasureUnit!

Constant for unit of pressure: atmosphere

static MeasureUnit!

Constant for unit of digital: bit

static MeasureUnit!

Constant for unit of volume: bushel

static MeasureUnit!

Constant for unit of digital: byte

static MeasureUnit!

Constant for unit of energy: calorie

static MeasureUnit!

Constant for unit of light: candela

static MeasureUnit!

Constant for unit of mass: carat

static MeasureUnit!

Constant for unit of temperature: celsius

static MeasureUnit!

Constant for unit of volume: centiliter

static MeasureUnit!

Constant for unit of length: centimeter

static MeasureUnit!

Constant for unit of duration: century

static MeasureUnit!

Constant for unit of volume: cubic-centimeter

static MeasureUnit!

Constant for unit of volume: cubic-foot

static MeasureUnit!

Constant for unit of volume: cubic-inch

static MeasureUnit!

Constant for unit of volume: cubic-kilometer

static MeasureUnit!

Constant for unit of volume: cubic-meter

static MeasureUnit!

Constant for unit of volume: cubic-mile

static MeasureUnit!

Constant for unit of volume: cubic-yard

static MeasureUnit!

Constant for unit of volume: cup

static MeasureUnit!

Constant for unit of volume: cup-metric

static TimeUnit!

Constant for unit of duration: day

static MeasureUnit!

Constant for unit of duration: decade

static MeasureUnit!

Constant for unit of volume: deciliter

static MeasureUnit!

Constant for unit of length: decimeter

static MeasureUnit!

Constant for unit of angle: degree

static MeasureUnit!

Constant for unit of graphics: dot

static MeasureUnit!

Constant for unit of graphics: dot-per-centimeter

static MeasureUnit!

Constant for unit of graphics: dot-per-inch

static MeasureUnit!

Constant for unit of graphics: em

static MeasureUnit!

Constant for unit of temperature: fahrenheit

static MeasureUnit!

Constant for unit of length: fathom

static MeasureUnit!

Constant for unit of volume: fluid-ounce

static MeasureUnit!

Constant for unit of energy: foodcalorie

static MeasureUnit!

Constant for unit of length: foot

static MeasureUnit!

Constant for unit of length: furlong

static MeasureUnit!

Constant for unit of volume: gallon

static MeasureUnit!

Constant for unit of volume: gallon-imperial

static MeasureUnit!

Constant for unit of temperature: generic

static MeasureUnit!

Constant for unit of digital: gigabit

static MeasureUnit!

Constant for unit of digital: gigabyte

static MeasureUnit!

Constant for unit of frequency: gigahertz

static MeasureUnit!

Constant for unit of power: gigawatt

static MeasureUnit!

Constant for unit of mass: gram

static MeasureUnit!

Constant for unit of acceleration: g-force

static MeasureUnit!

Constant for unit of area: hectare

static MeasureUnit!

Constant for unit of volume: hectoliter

static MeasureUnit!

Constant for unit of pressure: hectopascal

static MeasureUnit!

Constant for unit of frequency: hertz

static MeasureUnit!

Constant for unit of power: horsepower

static TimeUnit!

Constant for unit of duration: hour

static MeasureUnit!

Constant for unit of length: inch

static MeasureUnit!

Constant for unit of pressure: inch-ofhg

static MeasureUnit!

Constant for unit of concentr: item

static MeasureUnit!

Constant for unit of energy: joule

static MeasureUnit!

Constant for unit of concentr: karat

static MeasureUnit!

Constant for unit of temperature: kelvin

static MeasureUnit!

Constant for unit of digital: kilobit

static MeasureUnit!

Constant for unit of digital: kilobyte

static MeasureUnit!

Constant for unit of energy: kilocalorie

static MeasureUnit!

Constant for unit of mass: kilogram

static MeasureUnit!

Constant for unit of frequency: kilohertz

static MeasureUnit!

Constant for unit of energy: kilojoule

static MeasureUnit!

Constant for unit of length: kilometer

static MeasureUnit!

Constant for unit of speed: kilometer-per-hour

static MeasureUnit!

Constant for unit of power: kilowatt

static MeasureUnit!

Constant for unit of energy: kilowatt-hour

static MeasureUnit!

Constant for unit of force: kilowatt-hour-per-100-kilometer

static MeasureUnit!

Constant for unit of speed: knot

static MeasureUnit!

Constant for unit of length: light-year

static MeasureUnit!

Constant for unit of volume: liter

static MeasureUnit!

Constant for unit of consumption: liter-per-100-kilometer

static MeasureUnit!

Constant for unit of consumption: liter-per-kilometer

static MeasureUnit!

Constant for unit of light: lumen

static MeasureUnit!

Constant for unit of light: lux

static MeasureUnit!

Constant for unit of digital: megabit

static MeasureUnit!

Constant for unit of digital: megabyte

static MeasureUnit!

Constant for unit of frequency: megahertz

static MeasureUnit!

Constant for unit of volume: megaliter

static MeasureUnit!

Constant for unit of graphics: megapixel

static MeasureUnit!

Constant for unit of power: megawatt

static MeasureUnit!

Constant for unit of length: meter

static MeasureUnit!

Constant for unit of speed: meter-per-second

static MeasureUnit!

Constant for unit of acceleration: meter-per-square-second

static MeasureUnit!

Constant for unit of mass: metric-ton (renamed to tonne in CLDR 42 / ICU 72).

static MeasureUnit!

Constant for unit of mass: microgram

static MeasureUnit!

Constant for unit of length: micrometer

static MeasureUnit!

Constant for unit of duration: microsecond

static MeasureUnit!

Constant for unit of length: mile

static MeasureUnit!

Constant for unit of consumption: mile-per-gallon

static MeasureUnit!

Constant for unit of consumption: mile-per-gallon-imperial

static MeasureUnit!

Constant for unit of speed: mile-per-hour

static MeasureUnit!

Constant for unit of length: mile-scandinavian

static MeasureUnit!

Constant for unit of electric: milliampere

static MeasureUnit!

Constant for unit of pressure: millibar

static MeasureUnit!

Constant for unit of mass: milligram

static MeasureUnit!

Constant for unit of concentr: milligram-ofglucose-per-deciliter

static MeasureUnit!

Constant for unit of concentr: milligram-per-deciliter

static MeasureUnit!

Constant for unit of volume: milliliter

static MeasureUnit!

Constant for unit of length: millimeter

static MeasureUnit!

Constant for unit of pressure: millimeter-ofhg

static MeasureUnit!

Constant for unit of concentr: millimole-per-liter

static MeasureUnit!

Constant for unit of duration: millisecond

static MeasureUnit!

Constant for unit of power: milliwatt

static TimeUnit!

Constant for unit of duration: minute

static TimeUnit!

Constant for unit of duration: month

static MeasureUnit!

Constant for unit of length: nanometer

static MeasureUnit!

Constant for unit of duration: nanosecond

static MeasureUnit!

Constant for unit of length: nautical-mile

static MeasureUnit!

Constant for unit of electric: ohm

static MeasureUnit!

Constant for unit of mass: ounce

static MeasureUnit!

Constant for unit of mass: ounce-troy

static MeasureUnit!

Constant for unit of length: parsec

static MeasureUnit!

Constant for unit of concentr: permillion

static MeasureUnit!

Constant for unit of concentr: percent

static MeasureUnit!

Constant for unit of concentr: permille

static MeasureUnit!

Constant for unit of digital: petabyte

static MeasureUnit!

Constant for unit of length: picometer

static MeasureUnit!

Constant for unit of volume: pint

static MeasureUnit!

Constant for unit of volume: pint-metric

static MeasureUnit!

Constant for unit of graphics: pixel

static MeasureUnit!

Constant for unit of graphics: pixel-per-centimeter

static MeasureUnit!

Constant for unit of graphics: pixel-per-inch

static MeasureUnit!

Constant for unit of length: point

static MeasureUnit!

Constant for unit of mass: pound

static MeasureUnit!

Constant for unit of pressure: pound-force-per-square-inch

static MeasureUnit!

Constant for unit of volume: quart

static MeasureUnit!

Constant for unit of duration: quarter

static MeasureUnit!

Constant for unit of angle: radian

static MeasureUnit!

Constant for unit of angle: revolution

static TimeUnit!

Constant for unit of duration: second

static MeasureUnit!

Constant for unit of area: square-centimeter

static MeasureUnit!

Constant for unit of area: square-foot

static MeasureUnit!

Constant for unit of area: square-inch

static MeasureUnit!

Constant for unit of area: square-kilometer

static MeasureUnit!

Constant for unit of area: square-meter

static MeasureUnit!

Constant for unit of area: square-mile

static MeasureUnit!

Constant for unit of area: square-yard

static MeasureUnit!

Constant for unit of mass: stone

static MeasureUnit!

Constant for unit of volume: tablespoon

static MeasureUnit!

Constant for unit of volume: teaspoon

static MeasureUnit!

Constant for unit of digital: terabit

static MeasureUnit!

Constant for unit of digital: terabyte

static MeasureUnit!

Constant for unit of mass: ton

static MeasureUnit!

Constant for unit of mass: tonne

static MeasureUnit!

Constant for unit of electric: volt

static MeasureUnit!

Constant for unit of power: watt

static TimeUnit!

Constant for unit of duration: week

static MeasureUnit!

Constant for unit of length: yard

static TimeUnit!

Constant for unit of duration: year

Public methods

equals

Added in API level 24
open fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

forIdentifier

Added in API level 33
open static fun forIdentifier(identifier: String!): MeasureUnit!

Construct a MeasureUnit from a CLDR Core Unit Identifier, defined in UTS 35. (Core unit identifiers and mixed unit identifiers are supported, long unit identifiers are not.) Validates and canonicalizes the identifier. Note: dimensionless MeasureUnit is null

MeasureUnit example = MeasureUnit::forIdentifier("furlong-per-nanosecond")
  

Parameters
identifier String!: CLDR Unit Identifier
Exceptions
java.lang.IllegalArgumentException if the identifier is invalid.

getAvailable

Added in API level 24
open static fun getAvailable(type: String!): MutableSet<MeasureUnit!>!

For the given type, return the available units.

Parameters
type String!: the type
Return
MutableSet<MeasureUnit!>! the available units for type. Returned set is unmodifiable.

getAvailable

Added in API level 24
open static fun getAvailable(): MutableSet<MeasureUnit!>!

Get all of the available units. Returned set is unmodifiable.

getAvailableTypes

Added in API level 24
open static fun getAvailableTypes(): MutableSet<String!>!

Get all of the available units' types. Returned set is unmodifiable.

getComplexity

Added in API level 33
open fun getComplexity(): MeasureUnit.Complexity!

Compute the complexity of the unit. See Complexity for more information.

Return
MeasureUnit.Complexity! The unit complexity.

getDimensionality

Added in API level 33
open fun getDimensionality(): Int

Returns the dimensionality (power) of this MeasureUnit. For example, if the unit is square, then 2 is returned.

NOTE: Only works on SINGLE units. If this is a COMPOUND or MIXED unit, an exception will be thrown. For more information, Complexity.

Return
Int The dimensionality (power) of this simple unit.
Exceptions
java.lang.UnsupportedOperationException if the unit is COMPOUND or MIXED.

getIdentifier

Added in API level 33
open fun getIdentifier(): String!

Get CLDR Unit Identifier for this MeasureUnit, as defined in UTS 35.

Return
String! The string form of this unit.

getPrefix

Added in API level 34
open fun getPrefix(): MeasureUnit.MeasurePrefix!

Returns the current SI or binary prefix of this SINGLE unit. For example, if the unit has the prefix "kilo", then MeasurePrefix.KILO is returned.

NOTE: Only works on SINGLE units. If this is a COMPOUND or MIXED unit, an error will occur. For more information, Complexity.

Return
MeasureUnit.MeasurePrefix! The prefix of this SINGLE unit, from MeasurePrefix.
Exceptions
java.lang.UnsupportedOperationException if the unit is COMPOUND or MIXED.

getSubtype

Added in API level 24
open fun getSubtype(): String!

Get the subType, such as “foot”. May return null.

getType

Added in API level 24
open fun getType(): String!

Get the type, such as "length". May return null.

hashCode

Added in API level 24
open fun hashCode(): Int

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Return
Int a hash code value for this object.

product

Added in API level 33
open fun product(other: MeasureUnit!): MeasureUnit!

Computes the product of this unit with another unit. This is a way to build units from constituent parts.

The numerator and denominator are preserved through this operation.

For example, if the receiver is "kilowatt" and the argument is "hour-per-day", then the unit "kilowatt-hour-per-day" is returned.

NOTE: Only works on SINGLE and COMPOUND units. If either unit (receivee and argument) is a MIXED unit, an error will occur. For more information, Complexity.

Parameters
other MeasureUnit!: The MeasureUnit to multiply with the target.
Return
MeasureUnit! The product of the target unit with the provided unit.
Exceptions
java.lang.UnsupportedOperationException if the unit is MIXED.

reciprocal

Added in API level 33
open fun reciprocal(): MeasureUnit!

Computes the reciprocal of this MeasureUnit, with the numerator and denominator flipped.

For example, if the receiver is "meter-per-second", the unit "second-per-meter" is returned.

NOTE: Only works on SINGLE and COMPOUND units. If this is a MIXED unit, an error will occur. For more information, Complexity.

Return
MeasureUnit! The reciprocal of the target unit.
Exceptions
java.lang.UnsupportedOperationException if the unit is MIXED.

splitToSingleUnits

Added in API level 33
open fun splitToSingleUnits(): MutableList<MeasureUnit!>!

Returns the list of SINGLE units contained within a sequence of COMPOUND units.

Examples: - Given "meter-kilogram-per-second", three units will be returned: "meter", "kilogram", and "per-second". - Given "hour+minute+second", three units will be returned: "hour", "minute", and "second".

If this is a SINGLE unit, a list of length 1 will be returned.

Return
MutableList<MeasureUnit!>! An unmodifiable list of single units

toString

Added in API level 24
open fun toString(): String

Returns a string representation of the object.

Return
String a string representation of the object.

withDimensionality

Added in API level 33
open fun withDimensionality(dimensionality: Int): MeasureUnit!

Creates a MeasureUnit which is this SINGLE unit augmented with the specified dimensionality (power). For example, if dimensionality is 2, the unit will be squared.

NOTE: Only works on SINGLE units. If this is a COMPOUND or MIXED unit, an exception is thrown. For more information, Complexity.

Parameters
dimensionality Int: The dimensionality (power).
Return
MeasureUnit! A new SINGLE unit.
Exceptions
java.lang.UnsupportedOperationException if the unit is COMPOUND or MIXED.

withPrefix

Added in API level 34
open fun withPrefix(prefix: MeasureUnit.MeasurePrefix!): MeasureUnit!

Creates a MeasureUnit which is this SINGLE unit augmented with the specified prefix. For example, MeasurePrefix.KILO for "kilo", or MeasurePrefix.KIBI for "kibi". May return this if this unit already has that prefix.

There is sufficient locale data to format all standard prefixes.

NOTE: Only works on SINGLE units. If this is a COMPOUND or MIXED unit, an error will occur. For more information, Complexity.

Parameters
prefix MeasureUnit.MeasurePrefix!: The prefix, from MeasurePrefix.
Return
MeasureUnit! A new SINGLE unit.
Exceptions
java.lang.UnsupportedOperationException if this unit is a COMPOUND or MIXED unit.

Properties

ACRE

Added in API level 24
static val ACRE: MeasureUnit!

Constant for unit of area: acre

ACRE_FOOT

Added in API level 24
static val ACRE_FOOT: MeasureUnit!

Constant for unit of volume: acre-foot

AMPERE

Added in API level 24
static val AMPERE: MeasureUnit!

Constant for unit of electric: ampere

ARC_MINUTE

Added in API level 24
static val ARC_MINUTE: MeasureUnit!

Constant for unit of angle: arc-minute

ARC_SECOND

Added in API level 24
static val ARC_SECOND: MeasureUnit!

Constant for unit of angle: arc-second

ASTRONOMICAL_UNIT

Added in API level 24
static val ASTRONOMICAL_UNIT: MeasureUnit!

Constant for unit of length: astronomical-unit

ATMOSPHERE

Added in API level 30
static val ATMOSPHERE: MeasureUnit!

Constant for unit of pressure: atmosphere

BIT

Added in API level 24
static val BIT: MeasureUnit!

Constant for unit of digital: bit

BUSHEL

Added in API level 24
static val BUSHEL: MeasureUnit!

Constant for unit of volume: bushel

BYTE

Added in API level 24
static val BYTE: MeasureUnit!

Constant for unit of digital: byte

CALORIE

Added in API level 24
static val CALORIE: MeasureUnit!

Constant for unit of energy: calorie

CANDELA

Added in API level 33
static val CANDELA: MeasureUnit!

Constant for unit of light: candela

CARAT

Added in API level 24
static val CARAT: MeasureUnit!

Constant for unit of mass: carat

CELSIUS

Added in API level 24
static val CELSIUS: MeasureUnit!

Constant for unit of temperature: celsius

CENTILITER

Added in API level 24
static val CENTILITER: MeasureUnit!

Constant for unit of volume: centiliter

CENTIMETER

Added in API level 24
static val CENTIMETER: MeasureUnit!

Constant for unit of length: centimeter

CENTURY

Added in API level 26
static val CENTURY: MeasureUnit!

Constant for unit of duration: century

CUBIC_CENTIMETER

Added in API level 24
static val CUBIC_CENTIMETER: MeasureUnit!

Constant for unit of volume: cubic-centimeter

CUBIC_FOOT

Added in API level 24
static val CUBIC_FOOT: MeasureUnit!

Constant for unit of volume: cubic-foot

CUBIC_INCH

Added in API level 24
static val CUBIC_INCH: MeasureUnit!

Constant for unit of volume: cubic-inch

CUBIC_KILOMETER

Added in API level 24
static val CUBIC_KILOMETER: MeasureUnit!

Constant for unit of volume: cubic-kilometer

CUBIC_METER

Added in API level 24
static val CUBIC_METER: MeasureUnit!

Constant for unit of volume: cubic-meter

CUBIC_MILE

Added in API level 24
static val CUBIC_MILE: MeasureUnit!

Constant for unit of volume: cubic-mile

CUBIC_YARD

Added in API level 24
static val CUBIC_YARD: MeasureUnit!

Constant for unit of volume: cubic-yard

CUP

Added in API level 24
static val CUP: MeasureUnit!

Constant for unit of volume: cup

CUP_METRIC

Added in API level 26
static val CUP_METRIC: MeasureUnit!

Constant for unit of volume: cup-metric

DAY

Added in API level 24
static val DAY: TimeUnit!

Constant for unit of duration: day

DECADE

Added in API level 31
static val DECADE: MeasureUnit!

Constant for unit of duration: decade

DECILITER

Added in API level 24
static val DECILITER: MeasureUnit!

Constant for unit of volume: deciliter

DECIMETER

Added in API level 24
static val DECIMETER: MeasureUnit!

Constant for unit of length: decimeter

DEGREE

Added in API level 24
static val DEGREE: MeasureUnit!

Constant for unit of angle: degree

DOT

Added in API level 33
static val DOT: MeasureUnit!

Constant for unit of graphics: dot

DOT_PER_CENTIMETER

Added in API level 31
static val DOT_PER_CENTIMETER: MeasureUnit!

Constant for unit of graphics: dot-per-centimeter

DOT_PER_INCH

Added in API level 31
static val DOT_PER_INCH: MeasureUnit!

Constant for unit of graphics: dot-per-inch

EM

Added in API level 31
static val EM: MeasureUnit!

Constant for unit of graphics: em

FAHRENHEIT

Added in API level 24
static val FAHRENHEIT: MeasureUnit!

Constant for unit of temperature: fahrenheit

FATHOM

Added in API level 24
static val FATHOM: MeasureUnit!

Constant for unit of length: fathom

FLUID_OUNCE

Added in API level 24
static val FLUID_OUNCE: MeasureUnit!

Constant for unit of volume: fluid-ounce

FOODCALORIE

Added in API level 24
static val FOODCALORIE: MeasureUnit!

Constant for unit of energy: foodcalorie

Added in API level 24
static val FOOT: MeasureUnit!

Constant for unit of length: foot

FURLONG

Added in API level 24
static val FURLONG: MeasureUnit!

Constant for unit of length: furlong

GALLON

Added in API level 24
static val GALLON: MeasureUnit!

Constant for unit of volume: gallon

GALLON_IMPERIAL

Added in API level 28
static val GALLON_IMPERIAL: MeasureUnit!

Constant for unit of volume: gallon-imperial

GENERIC_TEMPERATURE

Added in API level 26
static val GENERIC_TEMPERATURE: MeasureUnit!

Constant for unit of temperature: generic

GIGABIT

Added in API level 24
static val GIGABIT: MeasureUnit!

Constant for unit of digital: gigabit

GIGABYTE

Added in API level 24
static val GIGABYTE: MeasureUnit!

Constant for unit of digital: gigabyte

GIGAHERTZ

Added in API level 24
static val GIGAHERTZ: MeasureUnit!

Constant for unit of frequency: gigahertz

GIGAWATT

Added in API level 24
static val GIGAWATT: MeasureUnit!

Constant for unit of power: gigawatt

GRAM

Added in API level 24
static val GRAM: MeasureUnit!

Constant for unit of mass: gram

G_FORCE

Added in API level 24
static val G_FORCE: MeasureUnit!

Constant for unit of acceleration: g-force

HECTARE

Added in API level 24
static val HECTARE: MeasureUnit!

Constant for unit of area: hectare

HECTOLITER

Added in API level 24
static val HECTOLITER: MeasureUnit!

Constant for unit of volume: hectoliter

HECTOPASCAL

Added in API level 24
static val HECTOPASCAL: MeasureUnit!

Constant for unit of pressure: hectopascal

HERTZ

Added in API level 24
static val HERTZ: MeasureUnit!

Constant for unit of frequency: hertz

HORSEPOWER

Added in API level 24
static val HORSEPOWER: MeasureUnit!

Constant for unit of power: horsepower

HOUR

Added in API level 24
static val HOUR: TimeUnit!

Constant for unit of duration: hour

INCH

Added in API level 24
static val INCH: MeasureUnit!

Constant for unit of length: inch

INCH_HG

Added in API level 24
static val INCH_HG: MeasureUnit!

Constant for unit of pressure: inch-ofhg

ITEM

Added in API level 34
static val ITEM: MeasureUnit!

Constant for unit of concentr: item

JOULE

Added in API level 24
static val JOULE: MeasureUnit!

Constant for unit of energy: joule

KARAT

Added in API level 24
static val KARAT: MeasureUnit!

Constant for unit of concentr: karat

KELVIN

Added in API level 24
static val KELVIN: MeasureUnit!

Constant for unit of temperature: kelvin

KILOBIT

Added in API level 24
static val KILOBIT: MeasureUnit!

Constant for unit of digital: kilobit

KILOBYTE

Added in API level 24
static val KILOBYTE: MeasureUnit!

Constant for unit of digital: kilobyte

KILOCALORIE

Added in API level 24
static val KILOCALORIE: MeasureUnit!

Constant for unit of energy: kilocalorie

KILOGRAM

Added in API level 24
static val KILOGRAM: MeasureUnit!

Constant for unit of mass: kilogram

KILOHERTZ

Added in API level 24
static val KILOHERTZ: MeasureUnit!

Constant for unit of frequency: kilohertz

KILOJOULE

Added in API level 24
static val KILOJOULE: MeasureUnit!

Constant for unit of energy: kilojoule

KILOMETER

Added in API level 24
static val KILOMETER: MeasureUnit!

Constant for unit of length: kilometer

KILOMETER_PER_HOUR

Added in API level 24
static val KILOMETER_PER_HOUR: MeasureUnit!

Constant for unit of speed: kilometer-per-hour

KILOWATT

Added in API level 24
static val KILOWATT: MeasureUnit!

Constant for unit of power: kilowatt

KILOWATT_HOUR

Added in API level 24
static val KILOWATT_HOUR: MeasureUnit!

Constant for unit of energy: kilowatt-hour

KILOWATT_HOUR_PER_100_KILOMETER

Added in API level 34
static val KILOWATT_HOUR_PER_100_KILOMETER: MeasureUnit!

Constant for unit of force: kilowatt-hour-per-100-kilometer

KNOT

Added in API level 26
static val KNOT: MeasureUnit!

Constant for unit of speed: knot

LIGHT_YEAR

Added in API level 24
static val LIGHT_YEAR: MeasureUnit!

Constant for unit of length: light-year

LITER

Added in API level 24
static val LITER: MeasureUnit!

Constant for unit of volume: liter

LITER_PER_100KILOMETERS

Added in API level 26
static val LITER_PER_100KILOMETERS: MeasureUnit!

Constant for unit of consumption: liter-per-100-kilometer

LITER_PER_KILOMETER

Added in API level 24
static val LITER_PER_KILOMETER: MeasureUnit!

Constant for unit of consumption: liter-per-kilometer

LUMEN

Added in API level 33
static val LUMEN: MeasureUnit!

Constant for unit of light: lumen

LUX

Added in API level 24
static val LUX: MeasureUnit!

Constant for unit of light: lux

MEGABIT

Added in API level 24
static val MEGABIT: MeasureUnit!

Constant for unit of digital: megabit

MEGABYTE

Added in API level 24
static val MEGABYTE: MeasureUnit!

Constant for unit of digital: megabyte

MEGAHERTZ

Added in API level 24
static val MEGAHERTZ: MeasureUnit!

Constant for unit of frequency: megahertz

MEGALITER

Added in API level 24
static val MEGALITER: MeasureUnit!

Constant for unit of volume: megaliter

MEGAPIXEL

Added in API level 31
static val MEGAPIXEL: MeasureUnit!

Constant for unit of graphics: megapixel

MEGAWATT

Added in API level 24
static val MEGAWATT: MeasureUnit!

Constant for unit of power: megawatt

METER

Added in API level 24
static val METER: MeasureUnit!

Constant for unit of length: meter

METER_PER_SECOND

Added in API level 24
static val METER_PER_SECOND: MeasureUnit!

Constant for unit of speed: meter-per-second

METER_PER_SECOND_SQUARED

Added in API level 24
static val METER_PER_SECOND_SQUARED: MeasureUnit!

Constant for unit of acceleration: meter-per-square-second

METRIC_TON

Added in API level 24
static val METRIC_TON: MeasureUnit!

Constant for unit of mass: metric-ton (renamed to tonne in CLDR 42 / ICU 72). Note: In ICU 74 this will be deprecated in favor of TONNE, which is currently draft but will become stable in ICU 74, and which uses the preferred naming.

MICROGRAM

Added in API level 24
static val MICROGRAM: MeasureUnit!

Constant for unit of mass: microgram

MICROMETER

Added in API level 24
static val MICROMETER: MeasureUnit!

Constant for unit of length: micrometer

MICROSECOND

Added in API level 24
static val MICROSECOND: MeasureUnit!

Constant for unit of duration: microsecond

MILE

Added in API level 24
static val MILE: MeasureUnit!

Constant for unit of length: mile

MILE_PER_GALLON

Added in API level 24
static val MILE_PER_GALLON: MeasureUnit!

Constant for unit of consumption: mile-per-gallon

MILE_PER_GALLON_IMPERIAL

Added in API level 28
static val MILE_PER_GALLON_IMPERIAL: MeasureUnit!

Constant for unit of consumption: mile-per-gallon-imperial

MILE_PER_HOUR

Added in API level 24
static val MILE_PER_HOUR: MeasureUnit!

Constant for unit of speed: mile-per-hour

MILE_SCANDINAVIAN

Added in API level 26
static val MILE_SCANDINAVIAN: MeasureUnit!

Constant for unit of length: mile-scandinavian

MILLIAMPERE

Added in API level 24
static val MILLIAMPERE: MeasureUnit!

Constant for unit of electric: milliampere

MILLIBAR

Added in API level 24
static val MILLIBAR: MeasureUnit!

Constant for unit of pressure: millibar

MILLIGRAM

Added in API level 24
static val MILLIGRAM: MeasureUnit!

Constant for unit of mass: milligram

MILLIGRAM_OFGLUCOSE_PER_DECILITER

Added in API level 34
static val MILLIGRAM_OFGLUCOSE_PER_DECILITER: MeasureUnit!

Constant for unit of concentr: milligram-ofglucose-per-deciliter

MILLIGRAM_PER_DECILITER

Added in API level 28
static val MILLIGRAM_PER_DECILITER: MeasureUnit!

Constant for unit of concentr: milligram-per-deciliter

MILLILITER

Added in API level 24
static val MILLILITER: MeasureUnit!

Constant for unit of volume: milliliter

MILLIMETER

Added in API level 24
static val MILLIMETER: MeasureUnit!

Constant for unit of length: millimeter

MILLIMETER_OF_MERCURY

Added in API level 24
static val MILLIMETER_OF_MERCURY: MeasureUnit!

Constant for unit of pressure: millimeter-ofhg

MILLIMOLE_PER_LITER

Added in API level 28
static val MILLIMOLE_PER_LITER: MeasureUnit!

Constant for unit of concentr: millimole-per-liter

MILLISECOND

Added in API level 24
static val MILLISECOND: MeasureUnit!

Constant for unit of duration: millisecond

MILLIWATT

Added in API level 24
static val MILLIWATT: MeasureUnit!

Constant for unit of power: milliwatt

MINUTE

Added in API level 24
static val MINUTE: TimeUnit!

Constant for unit of duration: minute

MONTH

Added in API level 24
static val MONTH: TimeUnit!

Constant for unit of duration: month

NANOMETER

Added in API level 24
static val NANOMETER: MeasureUnit!

Constant for unit of length: nanometer

NANOSECOND

Added in API level 24
static val NANOSECOND: MeasureUnit!

Constant for unit of duration: nanosecond

NAUTICAL_MILE

Added in API level 24
static val NAUTICAL_MILE: MeasureUnit!

Constant for unit of length: nautical-mile

OHM

Added in API level 24
static val OHM: MeasureUnit!

Constant for unit of electric: ohm

OUNCE

Added in API level 24
static val OUNCE: MeasureUnit!

Constant for unit of mass: ounce

OUNCE_TROY

Added in API level 24
static val OUNCE_TROY: MeasureUnit!

Constant for unit of mass: ounce-troy

PARSEC

Added in API level 24
static val PARSEC: MeasureUnit!

Constant for unit of length: parsec

PART_PER_MILLION

Added in API level 28
static val PART_PER_MILLION: MeasureUnit!

Constant for unit of concentr: permillion

PERCENT

Added in API level 30
static val PERCENT: MeasureUnit!

Constant for unit of concentr: percent

PERMILLE

Added in API level 30
static val PERMILLE: MeasureUnit!

Constant for unit of concentr: permille

PETABYTE

Added in API level 30
static val PETABYTE: MeasureUnit!

Constant for unit of digital: petabyte

PICOMETER

Added in API level 24
static val PICOMETER: MeasureUnit!

Constant for unit of length: picometer

PINT

Added in API level 24
static val PINT: MeasureUnit!

Constant for unit of volume: pint

PINT_METRIC

Added in API level 26
static val PINT_METRIC: MeasureUnit!

Constant for unit of volume: pint-metric

PIXEL

Added in API level 31
static val PIXEL: MeasureUnit!

Constant for unit of graphics: pixel

PIXEL_PER_CENTIMETER

Added in API level 31
static val PIXEL_PER_CENTIMETER: MeasureUnit!

Constant for unit of graphics: pixel-per-centimeter

PIXEL_PER_INCH

Added in API level 31
static val PIXEL_PER_INCH: MeasureUnit!

Constant for unit of graphics: pixel-per-inch

POINT

Added in API level 29
static val POINT: MeasureUnit!

Constant for unit of length: point

POUND

Added in API level 24
static val POUND: MeasureUnit!

Constant for unit of mass: pound

POUND_PER_SQUARE_INCH

Added in API level 24
static val POUND_PER_SQUARE_INCH: MeasureUnit!

Constant for unit of pressure: pound-force-per-square-inch

QUART

Added in API level 24
static val QUART: MeasureUnit!

Constant for unit of volume: quart

QUARTER

Added in API level 35
static val QUARTER: MeasureUnit!

Constant for unit of duration: quarter

RADIAN

Added in API level 24
static val RADIAN: MeasureUnit!

Constant for unit of angle: radian

REVOLUTION_ANGLE

Added in API level 26
static val REVOLUTION_ANGLE: MeasureUnit!

Constant for unit of angle: revolution

SECOND

Added in API level 24
static val SECOND: TimeUnit!

Constant for unit of duration: second

SQUARE_CENTIMETER

Added in API level 24
static val SQUARE_CENTIMETER: MeasureUnit!

Constant for unit of area: square-centimeter

SQUARE_FOOT

Added in API level 24
static val SQUARE_FOOT: MeasureUnit!

Constant for unit of area: square-foot

SQUARE_INCH

Added in API level 24
static val SQUARE_INCH: MeasureUnit!

Constant for unit of area: square-inch

SQUARE_KILOMETER

Added in API level 24
static val SQUARE_KILOMETER: MeasureUnit!

Constant for unit of area: square-kilometer

SQUARE_METER

Added in API level 24
static val SQUARE_METER: MeasureUnit!

Constant for unit of area: square-meter

SQUARE_MILE

Added in API level 24
static val SQUARE_MILE: MeasureUnit!

Constant for unit of area: square-mile

SQUARE_YARD

Added in API level 24
static val SQUARE_YARD: MeasureUnit!

Constant for unit of area: square-yard

STONE

Added in API level 24
static val STONE: MeasureUnit!

Constant for unit of mass: stone

TABLESPOON

Added in API level 24
static val TABLESPOON: MeasureUnit!

Constant for unit of volume: tablespoon

TEASPOON

Added in API level 24
static val TEASPOON: MeasureUnit!

Constant for unit of volume: teaspoon

TERABIT

Added in API level 24
static val TERABIT: MeasureUnit!

Constant for unit of digital: terabit

TERABYTE

Added in API level 24
static val TERABYTE: MeasureUnit!

Constant for unit of digital: terabyte

TON

Added in API level 24
static val TON: MeasureUnit!

Constant for unit of mass: ton

TONNE

Added in API level 35
static val TONNE: MeasureUnit!

Constant for unit of mass: tonne

VOLT

Added in API level 24
static val VOLT: MeasureUnit!

Constant for unit of electric: volt

WATT

Added in API level 24
static val WATT: MeasureUnit!

Constant for unit of power: watt

WEEK

Added in API level 24
static val WEEK: TimeUnit!

Constant for unit of duration: week

YARD

Added in API level 24
static val YARD: MeasureUnit!

Constant for unit of length: yard

YEAR

Added in API level 24
static val YEAR: TimeUnit!

Constant for unit of duration: year