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 |
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!>! |
Get all of the available units. |
open static MutableSet<MeasureUnit!>! |
getAvailable(type: String!) For the given type, return 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! |
getType() Get the type, such as "length". |
open Int |
hashCode() Returns a hash code value for the object. |
open MeasureUnit! |
product(other: 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 |
toString() 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! |
withPrefix(prefix: MeasureUnit.MeasurePrefix!) 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 speed: beaufort |
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 pressure: gasoline-energy-density |
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
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 returntrue
. - It is symmetric: for any non-null reference values
x
andy
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any non-null reference values
x
,y
, andz
, ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
. - It is consistent: for any non-null reference values
x
andy
, multiple invocations ofx.equals(y)
consistently returntrue
or consistently returnfalse
, provided no information used inequals
comparisons on the objects is modified. - For any non-null reference value
x
,x.equals(null)
should returnfalse
.
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
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
open static fun getAvailable(): MutableSet<MeasureUnit!>!
Get all of the available units. Returned set is unmodifiable.
getAvailable
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. |
getAvailableTypes
open static fun getAvailableTypes(): MutableSet<String!>!
Get all of the available units' types. Returned set is unmodifiable.
getComplexity
open fun getComplexity(): MeasureUnit.Complexity!
Compute the complexity of the unit. See Complexity for more information.
Return | |
---|---|
MeasureUnit.Complexity! |
The unit complexity. |
getDimensionality
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
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
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
open fun getSubtype(): String!
Get the subType, such as “foot”. May return null.
getType
open fun getType(): String!
Get the type, such as "length". May return null.
hashCode
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 inequals
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 thehashCode
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 thehashCode
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
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
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
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
open fun toString(): String
Returns a string representation of the object.
Return | |
---|---|
String |
a string representation of the object. |
withDimensionality
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
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_FOOT
static val ACRE_FOOT: MeasureUnit!
Constant for unit of volume: acre-foot
ARC_MINUTE
static val ARC_MINUTE: MeasureUnit!
Constant for unit of angle: arc-minute
ARC_SECOND
static val ARC_SECOND: MeasureUnit!
Constant for unit of angle: arc-second
ASTRONOMICAL_UNIT
static val ASTRONOMICAL_UNIT: MeasureUnit!
Constant for unit of length: astronomical-unit
ATMOSPHERE
static val ATMOSPHERE: MeasureUnit!
Constant for unit of pressure: atmosphere
BEAUFORT
static val BEAUFORT: MeasureUnit!
Constant for unit of speed: beaufort
CELSIUS
static val CELSIUS: MeasureUnit!
Constant for unit of temperature: celsius
CENTILITER
static val CENTILITER: MeasureUnit!
Constant for unit of volume: centiliter
CENTIMETER
static val CENTIMETER: MeasureUnit!
Constant for unit of length: centimeter
CENTURY
static val CENTURY: MeasureUnit!
Constant for unit of duration: century
CUBIC_CENTIMETER
static val CUBIC_CENTIMETER: MeasureUnit!
Constant for unit of volume: cubic-centimeter
CUBIC_FOOT
static val CUBIC_FOOT: MeasureUnit!
Constant for unit of volume: cubic-foot
CUBIC_INCH
static val CUBIC_INCH: MeasureUnit!
Constant for unit of volume: cubic-inch
CUBIC_KILOMETER
static val CUBIC_KILOMETER: MeasureUnit!
Constant for unit of volume: cubic-kilometer
CUBIC_METER
static val CUBIC_METER: MeasureUnit!
Constant for unit of volume: cubic-meter
CUBIC_MILE
static val CUBIC_MILE: MeasureUnit!
Constant for unit of volume: cubic-mile
CUBIC_YARD
static val CUBIC_YARD: MeasureUnit!
Constant for unit of volume: cubic-yard
CUP_METRIC
static val CUP_METRIC: MeasureUnit!
Constant for unit of volume: cup-metric
DECILITER
static val DECILITER: MeasureUnit!
Constant for unit of volume: deciliter
DECIMETER
static val DECIMETER: MeasureUnit!
Constant for unit of length: decimeter
DOT_PER_CENTIMETER
static val DOT_PER_CENTIMETER: MeasureUnit!
Constant for unit of graphics: dot-per-centimeter
DOT_PER_INCH
static val DOT_PER_INCH: MeasureUnit!
Constant for unit of graphics: dot-per-inch
FAHRENHEIT
static val FAHRENHEIT: MeasureUnit!
Constant for unit of temperature: fahrenheit
FLUID_OUNCE
static val FLUID_OUNCE: MeasureUnit!
Constant for unit of volume: fluid-ounce
FOODCALORIE
static val FOODCALORIE: MeasureUnit!
Constant for unit of energy: foodcalorie
GALLON_IMPERIAL
static val GALLON_IMPERIAL: MeasureUnit!
Constant for unit of volume: gallon-imperial
GASOLINE_ENERGY_DENSITY
static val GASOLINE_ENERGY_DENSITY: MeasureUnit!
Constant for unit of pressure: gasoline-energy-density
GENERIC_TEMPERATURE
static val GENERIC_TEMPERATURE: MeasureUnit!
Constant for unit of temperature: generic
GIGABIT
static val GIGABIT: MeasureUnit!
Constant for unit of digital: gigabit
GIGABYTE
static val GIGABYTE: MeasureUnit!
Constant for unit of digital: gigabyte
GIGAHERTZ
static val GIGAHERTZ: MeasureUnit!
Constant for unit of frequency: gigahertz
GIGAWATT
static val GIGAWATT: MeasureUnit!
Constant for unit of power: gigawatt
G_FORCE
static val G_FORCE: MeasureUnit!
Constant for unit of acceleration: g-force
HECTOLITER
static val HECTOLITER: MeasureUnit!
Constant for unit of volume: hectoliter
HECTOPASCAL
static val HECTOPASCAL: MeasureUnit!
Constant for unit of pressure: hectopascal
HORSEPOWER
static val HORSEPOWER: MeasureUnit!
Constant for unit of power: horsepower
INCH_HG
static val INCH_HG: MeasureUnit!
Constant for unit of pressure: inch-ofhg
KELVIN
static val KELVIN: MeasureUnit!
Constant for unit of temperature: kelvin
KILOBIT
static val KILOBIT: MeasureUnit!
Constant for unit of digital: kilobit
KILOBYTE
static val KILOBYTE: MeasureUnit!
Constant for unit of digital: kilobyte
KILOCALORIE
static val KILOCALORIE: MeasureUnit!
Constant for unit of energy: kilocalorie
KILOGRAM
static val KILOGRAM: MeasureUnit!
Constant for unit of mass: kilogram
KILOHERTZ
static val KILOHERTZ: MeasureUnit!
Constant for unit of frequency: kilohertz
KILOJOULE
static val KILOJOULE: MeasureUnit!
Constant for unit of energy: kilojoule
KILOMETER
static val KILOMETER: MeasureUnit!
Constant for unit of length: kilometer
KILOMETER_PER_HOUR
static val KILOMETER_PER_HOUR: MeasureUnit!
Constant for unit of speed: kilometer-per-hour
KILOWATT
static val KILOWATT: MeasureUnit!
Constant for unit of power: kilowatt
KILOWATT_HOUR
static val KILOWATT_HOUR: MeasureUnit!
Constant for unit of energy: kilowatt-hour
KILOWATT_HOUR_PER_100_KILOMETER
static val KILOWATT_HOUR_PER_100_KILOMETER: MeasureUnit!
Constant for unit of force: kilowatt-hour-per-100-kilometer
LIGHT_YEAR
static val LIGHT_YEAR: MeasureUnit!
Constant for unit of length: light-year
LITER_PER_100KILOMETERS
static val LITER_PER_100KILOMETERS: MeasureUnit!
Constant for unit of consumption: liter-per-100-kilometer
LITER_PER_KILOMETER
static val LITER_PER_KILOMETER: MeasureUnit!
Constant for unit of consumption: liter-per-kilometer
MEGABIT
static val MEGABIT: MeasureUnit!
Constant for unit of digital: megabit
MEGABYTE
static val MEGABYTE: MeasureUnit!
Constant for unit of digital: megabyte
MEGAHERTZ
static val MEGAHERTZ: MeasureUnit!
Constant for unit of frequency: megahertz
MEGALITER
static val MEGALITER: MeasureUnit!
Constant for unit of volume: megaliter
MEGAPIXEL
static val MEGAPIXEL: MeasureUnit!
Constant for unit of graphics: megapixel
MEGAWATT
static val MEGAWATT: MeasureUnit!
Constant for unit of power: megawatt
METER_PER_SECOND
static val METER_PER_SECOND: MeasureUnit!
Constant for unit of speed: meter-per-second
METER_PER_SECOND_SQUARED
static val METER_PER_SECOND_SQUARED: MeasureUnit!
Constant for unit of acceleration: meter-per-square-second
METRIC_TON
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
static val MICROGRAM: MeasureUnit!
Constant for unit of mass: microgram
MICROMETER
static val MICROMETER: MeasureUnit!
Constant for unit of length: micrometer
MICROSECOND
static val MICROSECOND: MeasureUnit!
Constant for unit of duration: microsecond
MILE_PER_GALLON
static val MILE_PER_GALLON: MeasureUnit!
Constant for unit of consumption: mile-per-gallon
MILE_PER_GALLON_IMPERIAL
static val MILE_PER_GALLON_IMPERIAL: MeasureUnit!
Constant for unit of consumption: mile-per-gallon-imperial
MILE_PER_HOUR
static val MILE_PER_HOUR: MeasureUnit!
Constant for unit of speed: mile-per-hour
MILE_SCANDINAVIAN
static val MILE_SCANDINAVIAN: MeasureUnit!
Constant for unit of length: mile-scandinavian
MILLIAMPERE
static val MILLIAMPERE: MeasureUnit!
Constant for unit of electric: milliampere
MILLIBAR
static val MILLIBAR: MeasureUnit!
Constant for unit of pressure: millibar
MILLIGRAM
static val MILLIGRAM: MeasureUnit!
Constant for unit of mass: milligram
MILLIGRAM_OFGLUCOSE_PER_DECILITER
static val MILLIGRAM_OFGLUCOSE_PER_DECILITER: MeasureUnit!
Constant for unit of concentr: milligram-ofglucose-per-deciliter
MILLIGRAM_PER_DECILITER
static val MILLIGRAM_PER_DECILITER: MeasureUnit!
Constant for unit of concentr: milligram-per-deciliter
MILLILITER
static val MILLILITER: MeasureUnit!
Constant for unit of volume: milliliter
MILLIMETER
static val MILLIMETER: MeasureUnit!
Constant for unit of length: millimeter
MILLIMETER_OF_MERCURY
static val MILLIMETER_OF_MERCURY: MeasureUnit!
Constant for unit of pressure: millimeter-ofhg
MILLIMOLE_PER_LITER
static val MILLIMOLE_PER_LITER: MeasureUnit!
Constant for unit of concentr: millimole-per-liter
MILLISECOND
static val MILLISECOND: MeasureUnit!
Constant for unit of duration: millisecond
MILLIWATT
static val MILLIWATT: MeasureUnit!
Constant for unit of power: milliwatt
NANOMETER
static val NANOMETER: MeasureUnit!
Constant for unit of length: nanometer
NANOSECOND
static val NANOSECOND: MeasureUnit!
Constant for unit of duration: nanosecond
NAUTICAL_MILE
static val NAUTICAL_MILE: MeasureUnit!
Constant for unit of length: nautical-mile
OUNCE_TROY
static val OUNCE_TROY: MeasureUnit!
Constant for unit of mass: ounce-troy
PART_PER_MILLION
static val PART_PER_MILLION: MeasureUnit!
Constant for unit of concentr: permillion
PERCENT
static val PERCENT: MeasureUnit!
Constant for unit of concentr: percent
PERMILLE
static val PERMILLE: MeasureUnit!
Constant for unit of concentr: permille
PETABYTE
static val PETABYTE: MeasureUnit!
Constant for unit of digital: petabyte
PICOMETER
static val PICOMETER: MeasureUnit!
Constant for unit of length: picometer
PINT_METRIC
static val PINT_METRIC: MeasureUnit!
Constant for unit of volume: pint-metric
PIXEL_PER_CENTIMETER
static val PIXEL_PER_CENTIMETER: MeasureUnit!
Constant for unit of graphics: pixel-per-centimeter
PIXEL_PER_INCH
static val PIXEL_PER_INCH: MeasureUnit!
Constant for unit of graphics: pixel-per-inch
POUND_PER_SQUARE_INCH
static val POUND_PER_SQUARE_INCH: MeasureUnit!
Constant for unit of pressure: pound-force-per-square-inch
QUARTER
static val QUARTER: MeasureUnit!
Constant for unit of duration: quarter
REVOLUTION_ANGLE
static val REVOLUTION_ANGLE: MeasureUnit!
Constant for unit of angle: revolution
SQUARE_CENTIMETER
static val SQUARE_CENTIMETER: MeasureUnit!
Constant for unit of area: square-centimeter
SQUARE_FOOT
static val SQUARE_FOOT: MeasureUnit!
Constant for unit of area: square-foot
SQUARE_INCH
static val SQUARE_INCH: MeasureUnit!
Constant for unit of area: square-inch
SQUARE_KILOMETER
static val SQUARE_KILOMETER: MeasureUnit!
Constant for unit of area: square-kilometer
SQUARE_METER
static val SQUARE_METER: MeasureUnit!
Constant for unit of area: square-meter
SQUARE_MILE
static val SQUARE_MILE: MeasureUnit!
Constant for unit of area: square-mile
SQUARE_YARD
static val SQUARE_YARD: MeasureUnit!
Constant for unit of area: square-yard
TABLESPOON
static val TABLESPOON: MeasureUnit!
Constant for unit of volume: tablespoon
TEASPOON
static val TEASPOON: MeasureUnit!
Constant for unit of volume: teaspoon
TERABIT
static val TERABIT: MeasureUnit!
Constant for unit of digital: terabit
TERABYTE
static val TERABYTE: MeasureUnit!
Constant for unit of digital: terabyte