| Package | Description |
|---|---|
| com.ibm.icu.number | |
| com.ibm.icu.text | |
| com.ibm.icu.util |
| Modifier and Type | Method and Description |
|---|---|
MeasureUnit |
FormattedNumber.getOutputUnit()
Gets the resolved output unit.
|
| Modifier and Type | Method and Description |
|---|---|
com.ibm.icu.impl.number.MicroProps |
LocalizedNumberFormatter.formatImpl(com.ibm.icu.impl.number.DecimalQuantity fq,
MeasureUnit unit,
com.ibm.icu.impl.FormattedStringBuilder string)
Deprecated.
ICU 67 This API is ICU internal only.
|
T |
NumberFormatterSettings.perUnit(MeasureUnit perUnit)
Sets a unit to be used in the denominator.
|
T |
NumberFormatterSettings.unit(MeasureUnit unit)
Specifies the unit (unit of measure, currency, or percent) to associate with rendered numbers.
|
| Modifier and Type | Method and Description |
|---|---|
StringBuilder |
MeasureFormat.formatMeasurePerUnit(Measure measure,
MeasureUnit perUnit,
StringBuilder appendTo,
FieldPosition pos)
Formats a single measure per unit.
|
String |
MeasureFormat.getUnitDisplayName(MeasureUnit unit)
Gets the display name of the specified
MeasureUnit corresponding to the current locale and
format width. |
| Modifier and Type | Class and Description |
|---|---|
class |
Currency
A class encapsulating a currency, as defined by ISO 4217.
|
class |
TimeUnit
Measurement unit for time units.
|
| Modifier and Type | Field and Description |
|---|---|
static MeasureUnit |
MeasureUnit.ACRE
Constant for unit of area: acre
|
static MeasureUnit |
MeasureUnit.ACRE_FOOT
Constant for unit of volume: acre-foot
|
static MeasureUnit |
MeasureUnit.AMPERE
Constant for unit of electric: ampere
|
static MeasureUnit |
MeasureUnit.ARC_MINUTE
Constant for unit of angle: arc-minute
|
static MeasureUnit |
MeasureUnit.ARC_SECOND
Constant for unit of angle: arc-second
|
static MeasureUnit |
MeasureUnit.ASTRONOMICAL_UNIT
Constant for unit of length: astronomical-unit
|
static MeasureUnit |
MeasureUnit.ATMOSPHERE
Constant for unit of pressure: atmosphere
|
static MeasureUnit |
MeasureUnit.BAR
Constant for unit of pressure: bar
|
static MeasureUnit |
MeasureUnit.BARREL
Constant for unit of volume: barrel
|
static MeasureUnit |
NoUnit.BASE
Constant for the base unit (dimensionless and no scaling).
|
static MeasureUnit |
MeasureUnit.BEAUFORT
Constant for unit of speed: beaufort
|
static MeasureUnit |
MeasureUnit.BIT
Constant for unit of digital: bit
|
static MeasureUnit |
MeasureUnit.BRITISH_THERMAL_UNIT
Constant for unit of energy: british-thermal-unit
|
static MeasureUnit |
MeasureUnit.BUSHEL
Constant for unit of volume: bushel
|
static MeasureUnit |
MeasureUnit.BYTE
Constant for unit of digital: byte
|
static MeasureUnit |
MeasureUnit.CALORIE
Constant for unit of energy: calorie
|
static MeasureUnit |
MeasureUnit.CANDELA
Constant for unit of light: candela
|
static MeasureUnit |
MeasureUnit.CARAT
Constant for unit of mass: carat
|
static MeasureUnit |
MeasureUnit.CELSIUS
Constant for unit of temperature: celsius
|
static MeasureUnit |
MeasureUnit.CENTILITER
Constant for unit of volume: centiliter
|
static MeasureUnit |
MeasureUnit.CENTIMETER
Constant for unit of length: centimeter
|
static MeasureUnit |
MeasureUnit.CENTURY
Constant for unit of duration: century
|
static MeasureUnit |
MeasureUnit.CUBIC_CENTIMETER
Constant for unit of volume: cubic-centimeter
|
static MeasureUnit |
MeasureUnit.CUBIC_FOOT
Constant for unit of volume: cubic-foot
|
static MeasureUnit |
MeasureUnit.CUBIC_INCH
Constant for unit of volume: cubic-inch
|
static MeasureUnit |
MeasureUnit.CUBIC_KILOMETER
Constant for unit of volume: cubic-kilometer
|
static MeasureUnit |
MeasureUnit.CUBIC_METER
Constant for unit of volume: cubic-meter
|
static MeasureUnit |
MeasureUnit.CUBIC_MILE
Constant for unit of volume: cubic-mile
|
static MeasureUnit |
MeasureUnit.CUBIC_YARD
Constant for unit of volume: cubic-yard
|
static MeasureUnit |
MeasureUnit.CUP
Constant for unit of volume: cup
|
static MeasureUnit |
MeasureUnit.CUP_METRIC
Constant for unit of volume: cup-metric
|
static MeasureUnit |
MeasureUnit.DALTON
Constant for unit of mass: dalton
|
static MeasureUnit |
MeasureUnit.DAY_PERSON
Constant for unit of duration: day-person
|
static MeasureUnit |
MeasureUnit.DECADE
Constant for unit of duration: decade
|
static MeasureUnit |
MeasureUnit.DECILITER
Constant for unit of volume: deciliter
|
static MeasureUnit |
MeasureUnit.DECIMETER
Constant for unit of length: decimeter
|
static MeasureUnit |
MeasureUnit.DEGREE
Constant for unit of angle: degree
|
static MeasureUnit |
MeasureUnit.DESSERT_SPOON
Constant for unit of volume: dessert-spoon
|
static MeasureUnit |
MeasureUnit.DESSERT_SPOON_IMPERIAL
Constant for unit of volume: dessert-spoon-imperial
|
static MeasureUnit |
MeasureUnit.DOT
Constant for unit of graphics: dot
|
static MeasureUnit |
MeasureUnit.DOT_PER_CENTIMETER
Constant for unit of graphics: dot-per-centimeter
|
static MeasureUnit |
MeasureUnit.DOT_PER_INCH
Constant for unit of graphics: dot-per-inch
|
static MeasureUnit |
MeasureUnit.DRAM
Constant for unit of volume: dram
|
static MeasureUnit |
MeasureUnit.DROP
Constant for unit of volume: drop
|
static MeasureUnit |
MeasureUnit.DUNAM
Constant for unit of area: dunam
|
static MeasureUnit |
MeasureUnit.EARTH_MASS
Constant for unit of mass: earth-mass
|
static MeasureUnit |
MeasureUnit.EARTH_RADIUS
Constant for unit of length: earth-radius
|
static MeasureUnit |
MeasureUnit.ELECTRONVOLT
Constant for unit of energy: electronvolt
|
static MeasureUnit |
MeasureUnit.EM
Constant for unit of graphics: em
|
static MeasureUnit |
MeasureUnit.FAHRENHEIT
Constant for unit of temperature: fahrenheit
|
static MeasureUnit |
MeasureUnit.FATHOM
Constant for unit of length: fathom
|
static MeasureUnit |
MeasureUnit.FLUID_OUNCE
Constant for unit of volume: fluid-ounce
|
static MeasureUnit |
MeasureUnit.FLUID_OUNCE_IMPERIAL
Constant for unit of volume: fluid-ounce-imperial
|
static MeasureUnit |
MeasureUnit.FOODCALORIE
Constant for unit of energy: foodcalorie
|
static MeasureUnit |
MeasureUnit.FOOT
Constant for unit of length: foot
|
static MeasureUnit |
MeasureUnit.FURLONG
Constant for unit of length: furlong
|
static MeasureUnit |
MeasureUnit.G_FORCE
Constant for unit of acceleration: g-force
|
static MeasureUnit |
MeasureUnit.GALLON
Constant for unit of volume: gallon
|
static MeasureUnit |
MeasureUnit.GALLON_IMPERIAL
Constant for unit of volume: gallon-imperial
|
static MeasureUnit |
MeasureUnit.GASOLINE_ENERGY_DENSITY
Constant for unit of pressure: gasoline-energy-density
|
static MeasureUnit |
MeasureUnit.GENERIC_TEMPERATURE
Constant for unit of temperature: generic
|
static MeasureUnit |
MeasureUnit.GIGABIT
Constant for unit of digital: gigabit
|
static MeasureUnit |
MeasureUnit.GIGABYTE
Constant for unit of digital: gigabyte
|
static MeasureUnit |
MeasureUnit.GIGAHERTZ
Constant for unit of frequency: gigahertz
|
static MeasureUnit |
MeasureUnit.GIGAWATT
Constant for unit of power: gigawatt
|
static MeasureUnit |
MeasureUnit.GRAIN
Constant for unit of mass: grain
|
static MeasureUnit |
MeasureUnit.GRAM
Constant for unit of mass: gram
|
static MeasureUnit |
MeasureUnit.HECTARE
Constant for unit of area: hectare
|
static MeasureUnit |
MeasureUnit.HECTOLITER
Constant for unit of volume: hectoliter
|
static MeasureUnit |
MeasureUnit.HECTOPASCAL
Constant for unit of pressure: hectopascal
|
static MeasureUnit |
MeasureUnit.HERTZ
Constant for unit of frequency: hertz
|
static MeasureUnit |
MeasureUnit.HORSEPOWER
Constant for unit of power: horsepower
|
static MeasureUnit |
MeasureUnit.INCH
Constant for unit of length: inch
|
static MeasureUnit |
MeasureUnit.INCH_HG
Constant for unit of pressure: inch-ofhg
|
static MeasureUnit |
MeasureUnit.ITEM
Constant for unit of concentr: item
|
static MeasureUnit |
MeasureUnit.JIGGER
Constant for unit of volume: jigger
|
static MeasureUnit |
MeasureUnit.JOULE
Constant for unit of energy: joule
|
static MeasureUnit |
MeasureUnit.KARAT
Constant for unit of concentr: karat
|
static MeasureUnit |
MeasureUnit.KELVIN
Constant for unit of temperature: kelvin
|
static MeasureUnit |
MeasureUnit.KILOBIT
Constant for unit of digital: kilobit
|
static MeasureUnit |
MeasureUnit.KILOBYTE
Constant for unit of digital: kilobyte
|
static MeasureUnit |
MeasureUnit.KILOCALORIE
Constant for unit of energy: kilocalorie
|
static MeasureUnit |
MeasureUnit.KILOGRAM
Constant for unit of mass: kilogram
|
static MeasureUnit |
MeasureUnit.KILOHERTZ
Constant for unit of frequency: kilohertz
|
static MeasureUnit |
MeasureUnit.KILOJOULE
Constant for unit of energy: kilojoule
|
static MeasureUnit |
MeasureUnit.KILOMETER
Constant for unit of length: kilometer
|
static MeasureUnit |
MeasureUnit.KILOMETER_PER_HOUR
Constant for unit of speed: kilometer-per-hour
|
static MeasureUnit |
MeasureUnit.KILOPASCAL
Constant for unit of pressure: kilopascal
|
static MeasureUnit |
MeasureUnit.KILOWATT
Constant for unit of power: kilowatt
|
static MeasureUnit |
MeasureUnit.KILOWATT_HOUR
Constant for unit of energy: kilowatt-hour
|
static MeasureUnit |
MeasureUnit.KILOWATT_HOUR_PER_100_KILOMETER
Constant for unit of force: kilowatt-hour-per-100-kilometer
|
static MeasureUnit |
MeasureUnit.KNOT
Constant for unit of speed: knot
|
static MeasureUnit |
MeasureUnit.LIGHT_YEAR
Constant for unit of length: light-year
|
static MeasureUnit |
MeasureUnit.LITER
Constant for unit of volume: liter
|
static MeasureUnit |
MeasureUnit.LITER_PER_100KILOMETERS
Constant for unit of consumption: liter-per-100-kilometer
|
static MeasureUnit |
MeasureUnit.LITER_PER_KILOMETER
Constant for unit of consumption: liter-per-kilometer
|
static MeasureUnit |
MeasureUnit.LUMEN
Constant for unit of light: lumen
|
static MeasureUnit |
MeasureUnit.LUX
Constant for unit of light: lux
|
static MeasureUnit |
MeasureUnit.MEGABIT
Constant for unit of digital: megabit
|
static MeasureUnit |
MeasureUnit.MEGABYTE
Constant for unit of digital: megabyte
|
static MeasureUnit |
MeasureUnit.MEGAHERTZ
Constant for unit of frequency: megahertz
|
static MeasureUnit |
MeasureUnit.MEGALITER
Constant for unit of volume: megaliter
|
static MeasureUnit |
MeasureUnit.MEGAPASCAL
Constant for unit of pressure: megapascal
|
static MeasureUnit |
MeasureUnit.MEGAPIXEL
Constant for unit of graphics: megapixel
|
static MeasureUnit |
MeasureUnit.MEGAWATT
Constant for unit of power: megawatt
|
static MeasureUnit |
MeasureUnit.METER
Constant for unit of length: meter
|
static MeasureUnit |
MeasureUnit.METER_PER_SECOND
Constant for unit of speed: meter-per-second
|
static MeasureUnit |
MeasureUnit.METER_PER_SECOND_SQUARED
Constant for unit of acceleration: meter-per-square-second
|
static MeasureUnit |
MeasureUnit.METRIC_TON
Constant for unit of mass: metric-ton (renamed to tonne in CLDR 42 / ICU 72).
|
static MeasureUnit |
MeasureUnit.MICROGRAM
Constant for unit of mass: microgram
|
static MeasureUnit |
MeasureUnit.MICROMETER
Constant for unit of length: micrometer
|
static MeasureUnit |
MeasureUnit.MICROSECOND
Constant for unit of duration: microsecond
|
static MeasureUnit |
MeasureUnit.MILE
Constant for unit of length: mile
|
static MeasureUnit |
MeasureUnit.MILE_PER_GALLON
Constant for unit of consumption: mile-per-gallon
|
static MeasureUnit |
MeasureUnit.MILE_PER_GALLON_IMPERIAL
Constant for unit of consumption: mile-per-gallon-imperial
|
static MeasureUnit |
MeasureUnit.MILE_PER_HOUR
Constant for unit of speed: mile-per-hour
|
static MeasureUnit |
MeasureUnit.MILE_SCANDINAVIAN
Constant for unit of length: mile-scandinavian
|
static MeasureUnit |
MeasureUnit.MILLIAMPERE
Constant for unit of electric: milliampere
|
static MeasureUnit |
MeasureUnit.MILLIBAR
Constant for unit of pressure: millibar
|
static MeasureUnit |
MeasureUnit.MILLIGRAM
Constant for unit of mass: milligram
|
static MeasureUnit |
MeasureUnit.MILLIGRAM_OFGLUCOSE_PER_DECILITER
Constant for unit of concentr: milligram-ofglucose-per-deciliter
|
static MeasureUnit |
MeasureUnit.MILLIGRAM_PER_DECILITER
Constant for unit of concentr: milligram-per-deciliter
|
static MeasureUnit |
MeasureUnit.MILLILITER
Constant for unit of volume: milliliter
|
static MeasureUnit |
MeasureUnit.MILLIMETER
Constant for unit of length: millimeter
|
static MeasureUnit |
MeasureUnit.MILLIMETER_OF_MERCURY
Constant for unit of pressure: millimeter-ofhg
|
static MeasureUnit |
MeasureUnit.MILLIMOLE_PER_LITER
Constant for unit of concentr: millimole-per-liter
|
static MeasureUnit |
MeasureUnit.MILLISECOND
Constant for unit of duration: millisecond
|
static MeasureUnit |
MeasureUnit.MILLIWATT
Constant for unit of power: milliwatt
|
static MeasureUnit |
MeasureUnit.MOLE
Constant for unit of concentr: mole
|
static MeasureUnit |
MeasureUnit.MONTH_PERSON
Constant for unit of duration: month-person
|
static MeasureUnit |
MeasureUnit.NANOMETER
Constant for unit of length: nanometer
|
static MeasureUnit |
MeasureUnit.NANOSECOND
Constant for unit of duration: nanosecond
|
static MeasureUnit |
MeasureUnit.NAUTICAL_MILE
Constant for unit of length: nautical-mile
|
static MeasureUnit |
MeasureUnit.NEWTON
Constant for unit of force: newton
|
static MeasureUnit |
MeasureUnit.NEWTON_METER
Constant for unit of torque: newton-meter
|
static MeasureUnit |
MeasureUnit.OHM
Constant for unit of electric: ohm
|
static MeasureUnit |
MeasureUnit.OUNCE
Constant for unit of mass: ounce
|
static MeasureUnit |
MeasureUnit.OUNCE_TROY
Constant for unit of mass: ounce-troy
|
static MeasureUnit |
MeasureUnit.PARSEC
Constant for unit of length: parsec
|
static MeasureUnit |
MeasureUnit.PART_PER_MILLION
Constant for unit of concentr: permillion
|
static MeasureUnit |
MeasureUnit.PASCAL
Constant for unit of pressure: pascal
|
static MeasureUnit |
NoUnit.PERCENT
Constant for the percent unit, or 1/100 of a base unit.
|
static MeasureUnit |
MeasureUnit.PERCENT
Constant for unit of concentr: percent
|
static MeasureUnit |
NoUnit.PERMILLE
Constant for the permille unit, or 1/100 of a base unit.
|
static MeasureUnit |
MeasureUnit.PERMILLE
Constant for unit of concentr: permille
|
static MeasureUnit |
MeasureUnit.PERMYRIAD
Constant for unit of concentr: permyriad
|
static MeasureUnit |
MeasureUnit.PETABYTE
Constant for unit of digital: petabyte
|
static MeasureUnit |
MeasureUnit.PICOMETER
Constant for unit of length: picometer
|
static MeasureUnit |
MeasureUnit.PINCH
Constant for unit of volume: pinch
|
static MeasureUnit |
MeasureUnit.PINT
Constant for unit of volume: pint
|
static MeasureUnit |
MeasureUnit.PINT_METRIC
Constant for unit of volume: pint-metric
|
static MeasureUnit |
MeasureUnit.PIXEL
Constant for unit of graphics: pixel
|
static MeasureUnit |
MeasureUnit.PIXEL_PER_CENTIMETER
Constant for unit of graphics: pixel-per-centimeter
|
static MeasureUnit |
MeasureUnit.PIXEL_PER_INCH
Constant for unit of graphics: pixel-per-inch
|
static MeasureUnit |
MeasureUnit.POINT
Constant for unit of length: point
|
static MeasureUnit |
MeasureUnit.POUND
Constant for unit of mass: pound
|
static MeasureUnit |
MeasureUnit.POUND_FOOT
Constant for unit of torque: pound-force-foot
|
static MeasureUnit |
MeasureUnit.POUND_FORCE
Constant for unit of force: pound-force
|
static MeasureUnit |
MeasureUnit.POUND_PER_SQUARE_INCH
Constant for unit of pressure: pound-force-per-square-inch
|
static MeasureUnit |
MeasureUnit.QUART
Constant for unit of volume: quart
|
static MeasureUnit |
MeasureUnit.QUART_IMPERIAL
Constant for unit of volume: quart-imperial
|
static MeasureUnit |
MeasureUnit.QUARTER
Constant for unit of duration: quarter
|
static MeasureUnit |
MeasureUnit.RADIAN
Constant for unit of angle: radian
|
static MeasureUnit |
MeasureUnit.REVOLUTION_ANGLE
Constant for unit of angle: revolution
|
static MeasureUnit |
MeasureUnit.SOLAR_LUMINOSITY
Constant for unit of light: solar-luminosity
|
static MeasureUnit |
MeasureUnit.SOLAR_MASS
Constant for unit of mass: solar-mass
|
static MeasureUnit |
MeasureUnit.SOLAR_RADIUS
Constant for unit of length: solar-radius
|
static MeasureUnit |
MeasureUnit.SQUARE_CENTIMETER
Constant for unit of area: square-centimeter
|
static MeasureUnit |
MeasureUnit.SQUARE_FOOT
Constant for unit of area: square-foot
|
static MeasureUnit |
MeasureUnit.SQUARE_INCH
Constant for unit of area: square-inch
|
static MeasureUnit |
MeasureUnit.SQUARE_KILOMETER
Constant for unit of area: square-kilometer
|
static MeasureUnit |
MeasureUnit.SQUARE_METER
Constant for unit of area: square-meter
|
static MeasureUnit |
MeasureUnit.SQUARE_MILE
Constant for unit of area: square-mile
|
static MeasureUnit |
MeasureUnit.SQUARE_YARD
Constant for unit of area: square-yard
|
static MeasureUnit |
MeasureUnit.STONE
Constant for unit of mass: stone
|
static MeasureUnit |
MeasureUnit.TABLESPOON
Constant for unit of volume: tablespoon
|
static MeasureUnit |
MeasureUnit.TEASPOON
Constant for unit of volume: teaspoon
|
static MeasureUnit |
MeasureUnit.TERABIT
Constant for unit of digital: terabit
|
static MeasureUnit |
MeasureUnit.TERABYTE
Constant for unit of digital: terabyte
|
static MeasureUnit |
MeasureUnit.THERM_US
Constant for unit of energy: therm-us
|
static MeasureUnit |
MeasureUnit.TON
Constant for unit of mass: ton
|
static MeasureUnit |
MeasureUnit.TONNE
Constant for unit of mass: tonne
|
static MeasureUnit |
MeasureUnit.VOLT
Constant for unit of electric: volt
|
static MeasureUnit |
MeasureUnit.WATT
Constant for unit of power: watt
|
static MeasureUnit |
MeasureUnit.WEEK_PERSON
Constant for unit of duration: week-person
|
static MeasureUnit |
MeasureUnit.YARD
Constant for unit of length: yard
|
static MeasureUnit |
MeasureUnit.YEAR_PERSON
Constant for unit of duration: year-person
|
| Modifier and Type | Method and Description |
|---|---|
protected static MeasureUnit |
MeasureUnit.addUnit(String type,
String unitName,
MeasureUnit.Factory factory)
Deprecated.
This API is ICU internal only.
|
MeasureUnit |
MeasureUnit.Factory.create(String type,
String subType)
Deprecated.
This API is ICU internal only.
|
static MeasureUnit |
MeasureUnit.findBySubType(String subType)
Deprecated.
This API is ICU internal only.
|
static MeasureUnit |
MeasureUnit.forIdentifier(String identifier)
Construct a MeasureUnit from a CLDR Core Unit Identifier, defined in UTS
35.
|
static MeasureUnit |
MeasureUnit.fromMeasureUnitImpl(com.ibm.icu.impl.units.MeasureUnitImpl measureUnitImpl)
Deprecated.
Internal API for ICU use only.
|
MeasureUnit |
Measure.getUnit()
Returns the unit of this object.
|
static MeasureUnit |
MeasureUnit.internalGetInstance(String type,
String subType)
Deprecated.
This API is ICU internal only.
|
MeasureUnit |
MeasureUnit.product(MeasureUnit other)
Computes the product of this unit with another unit.
|
MeasureUnit |
MeasureUnit.reciprocal()
Computes the reciprocal of this MeasureUnit, with the numerator and denominator flipped.
|
MeasureUnit |
MeasureUnit.withDimensionality(int dimensionality)
Creates a MeasureUnit which is this SINGLE unit augmented with the specified dimensionality
(power).
|
MeasureUnit |
MeasureUnit.withPrefix(MeasureUnit.MeasurePrefix prefix)
Creates a MeasureUnit which is this SINGLE unit augmented with the specified prefix.
|
| Modifier and Type | Method and Description |
|---|---|
static Set<MeasureUnit> |
MeasureUnit.getAvailable()
Get all of the available units.
|
static Set<MeasureUnit> |
MeasureUnit.getAvailable(String type)
For the given type, return the available units.
|
List<MeasureUnit> |
MeasureUnit.splitToSingleUnits()
Returns the list of SINGLE units contained within a sequence of COMPOUND units.
|
| Modifier and Type | Method and Description |
|---|---|
MeasureUnit |
MeasureUnit.product(MeasureUnit other)
Computes the product of this unit with another unit.
|
| Constructor and Description |
|---|
Measure(Number number,
MeasureUnit unit)
Constructs a new object given a number and a unit.
|
Copyright © 2016 Unicode, Inc. and others.