Serializable, Comparable<MeasureOptions.Unit>public static enum MeasureOptions.Unit extends Enum<MeasureOptions.Unit>
| 枚举常量 | 说明 |
|---|---|
AREA_DUNAM |
Indicates the dunam.
|
AREA_SI_HECTARE |
Indicates the hectare used in the metric system.
|
AREA_SI_SQUARE_CENTIMETER |
Indicates the square centimeter used in the metric system.
|
AREA_SI_SQUARE_KILOMETER |
Indicates the square kilometer used in the metric system.
|
AREA_SI_SQUARE_METER |
Indicates the square meter used in the metric system.
|
AREA_UK_ACRE |
Indicates the acre used in the imperial system.
|
AREA_UK_SQUARE_FOOT |
Indicates the square foot used in the imperial system.
|
AREA_UK_SQUARE_INCH |
Indicates the square inch used in the imperial system.
|
AREA_UK_SQUARE_MILE |
Indicates the square mile used in the imperial system.
|
AREA_UK_SQUARE_YARD |
Indicates the square yard used in the imperial system.
|
LENGTH_MILE_SCANDINAVIAN |
Indicates the Scandinavian mile.
|
LENGTH_NAUTICAL_MILE |
Indicates the Nautical mile.
|
LENGTH_SI_CENTIMETER |
Indicates the centimeter used in the metric system.
|
LENGTH_SI_DECIMETER |
Indicates the decimeter used in the metric system.
|
LENGTH_SI_KILOMETER |
Indicates the kilometer used in the metric system.
|
LENGTH_SI_METER |
Indicates the meter used in the metric system.
|
LENGTH_SI_MICROMETER |
Indicates the micrometer used in the metric system.
|
LENGTH_SI_MILLIMETER |
Indicates the millimeter used in the metric system.
|
LENGTH_SI_NANOMETER |
Indicates the nanometer used in the metric system.
|
LENGTH_SI_PICOMETER |
Indicates the picometer used in the metric system.
|
LENGTH_UK_FATHOM |
Indicates the fathom used in the imperial system.
|
LENGTH_UK_FOOT |
Indicates the foot used in the imperial system.
|
LENGTH_UK_FURLONG |
Indicates the furlong used in the imperial system.
|
LENGTH_UK_INCH |
Indicates the inch used in the imperial system.
|
LENGTH_UK_MILE |
Indicates the mile used in the imperial system.
|
LENGTH_UK_POINT |
Indicates the point used in the imperial system.
|
LENGTH_UK_YARD |
Indicates the yard used in the imperial system.
|
SPEED_KNOT |
Indicates the knot.
|
SPEED_SI_KILOMETER_PER_HOUR |
Indicates the kilometer per hour used in the metric system.
|
SPEED_SI_METER_PER_SECOND |
Indicates the meter per second used in the metric system.
|
SPEED_UK_MILE_PER_HOUR |
Indicates the mile per hour used in the imperial system.
|
TEMPERATURE_SI_CELSIUS |
Indicates the Celsius.
|
TEMPERATURE_SI_FAHRENHEIT |
Indicates the Fahrenheit.
|
TEMPERATURE_SI_KELVIN |
Indicates the Kelvin.
|
VOLUME_SI_CENTILITER |
Indicates the centiliter used in the metric system.
|
VOLUME_SI_CUBIC_CENTIMETER |
Indicates the cubic centimeter used in the metric system.
|
VOLUME_SI_CUBIC_KILOMETER |
Indicates the cubic kilometer used in the metric system.
|
VOLUME_SI_CUBIC_METER |
Indicates the cubic meter used in the metric system.
|
VOLUME_SI_CUP_METRIC |
Indicates the cup used in the metric system.
|
VOLUME_SI_DECILITER |
Indicates the deciliter used in the metric system.
|
VOLUME_SI_HECTOLITER |
Indicates the hectoliter used in the metric system.
|
VOLUME_SI_LITER |
Indicates the liter used in the metric system.
|
VOLUME_SI_MEGALITER |
Indicates the megaliter used in the metric system.
|
VOLUME_SI_MILLILITER |
Indicates the milliliter used in the metric system.
|
VOLUME_SI_PINT_METRIC |
Indicates the pint used in the metric system.
|
VOLUME_UK_BARREL |
Indicates the barrel used in the imperial system.
|
VOLUME_UK_BUSHEL |
Indicates the bushel used in the imperial system.
|
VOLUME_UK_CUBIC_FOOT |
Indicates the cubic foot used in the imperial system.
|
VOLUME_UK_CUBIC_INCH |
Indicates the cubic inch used in the imperial system.
|
VOLUME_UK_CUBIC_MILE |
Indicates the cubic mile used in the imperial system.
|
VOLUME_UK_CUBIC_YARD |
Indicates the cubic yard used in the imperial system.
|
VOLUME_UK_CUP |
Indicates the cup used in the imperial system.
|
VOLUME_UK_FLUID_OUNCE_IMPERIAL |
Indicates the fluid ounce used in the imperial system.
|
VOLUME_UK_GALLON_IMPERIAL |
Indicates the gallon used in the imperial system.
|
VOLUME_UK_PINT |
Indicates the pint used in the imperial system.
|
VOLUME_UK_QUART |
Indicates the quart used in the imperial system.
|
VOLUME_UK_TABLESPOON |
Indicates the tablespoon used in the imperial system.
|
VOLUME_UK_TEASPOON |
Indicates the teaspoon used in the imperial system.
|
VOLUME_US_ACRE_FOOT |
Indicates the acre foot used in the United States.
|
VOLUME_US_BARREL |
Indicates the barrel used in the United States.
|
VOLUME_US_BUSHEL |
Indicates the bushel used in the United States.
|
VOLUME_US_CUP |
Indicates the cup used in the United States.
|
VOLUME_US_FLUID_OUNCE |
Indicates the fluid ounce used in the United States.
|
VOLUME_US_GALLON |
Indicates the gallon used in the United States.
|
VOLUME_US_PINT |
Indicates the pint used in the United States.
|
VOLUME_US_QUART |
Indicates the quart used in the United States.
|
VOLUME_US_TABLESPOON |
Indicates the tablespoon used in the United States.
|
VOLUME_US_TEASPOON |
Indicates the teaspoon used in the United States.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
LocaleData.MeasurementSystem |
getMeasurementSystem() |
Obtains the
LocaleData.MeasurementSystem of this Unit. |
MeasureUnit |
getMeasureUnit() |
Obtains the
MeasureUnit of this Unit. |
String |
getUnitName() |
Obtains the name of this
Unit. |
String |
getUnitType() |
Obtains the type of this
Unit. |
static MeasureOptions.Unit |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static MeasureOptions.Unit[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (MeasureOptions.Unit c : MeasureOptions.Unit.values()) System.out.println(c); |
public static final MeasureOptions.Unit AREA_UK_ACRE
public static final MeasureOptions.Unit AREA_SI_HECTARE
public static final MeasureOptions.Unit AREA_SI_SQUARE_CENTIMETER
public static final MeasureOptions.Unit AREA_UK_SQUARE_FOOT
public static final MeasureOptions.Unit AREA_UK_SQUARE_INCH
public static final MeasureOptions.Unit AREA_SI_SQUARE_KILOMETER
public static final MeasureOptions.Unit AREA_SI_SQUARE_METER
public static final MeasureOptions.Unit AREA_UK_SQUARE_MILE
public static final MeasureOptions.Unit AREA_UK_SQUARE_YARD
public static final MeasureOptions.Unit AREA_DUNAM
public static final MeasureOptions.Unit LENGTH_SI_CENTIMETER
public static final MeasureOptions.Unit LENGTH_SI_DECIMETER
public static final MeasureOptions.Unit LENGTH_UK_FATHOM
public static final MeasureOptions.Unit LENGTH_UK_FOOT
public static final MeasureOptions.Unit LENGTH_UK_FURLONG
public static final MeasureOptions.Unit LENGTH_UK_INCH
public static final MeasureOptions.Unit LENGTH_SI_KILOMETER
public static final MeasureOptions.Unit LENGTH_SI_METER
public static final MeasureOptions.Unit LENGTH_SI_MICROMETER
public static final MeasureOptions.Unit LENGTH_UK_MILE
public static final MeasureOptions.Unit LENGTH_MILE_SCANDINAVIAN
public static final MeasureOptions.Unit LENGTH_SI_MILLIMETER
public static final MeasureOptions.Unit LENGTH_SI_NANOMETER
public static final MeasureOptions.Unit LENGTH_NAUTICAL_MILE
public static final MeasureOptions.Unit LENGTH_SI_PICOMETER
public static final MeasureOptions.Unit LENGTH_UK_POINT
public static final MeasureOptions.Unit LENGTH_UK_YARD
public static final MeasureOptions.Unit SPEED_SI_KILOMETER_PER_HOUR
public static final MeasureOptions.Unit SPEED_KNOT
public static final MeasureOptions.Unit SPEED_SI_METER_PER_SECOND
public static final MeasureOptions.Unit SPEED_UK_MILE_PER_HOUR
public static final MeasureOptions.Unit TEMPERATURE_SI_CELSIUS
public static final MeasureOptions.Unit TEMPERATURE_SI_FAHRENHEIT
public static final MeasureOptions.Unit TEMPERATURE_SI_KELVIN
public static final MeasureOptions.Unit VOLUME_US_ACRE_FOOT
public static final MeasureOptions.Unit VOLUME_UK_BARREL
public static final MeasureOptions.Unit VOLUME_US_BARREL
public static final MeasureOptions.Unit VOLUME_UK_BUSHEL
public static final MeasureOptions.Unit VOLUME_US_BUSHEL
public static final MeasureOptions.Unit VOLUME_SI_CENTILITER
public static final MeasureOptions.Unit VOLUME_SI_CUBIC_CENTIMETER
public static final MeasureOptions.Unit VOLUME_UK_CUBIC_FOOT
public static final MeasureOptions.Unit VOLUME_UK_CUBIC_INCH
public static final MeasureOptions.Unit VOLUME_SI_CUBIC_KILOMETER
public static final MeasureOptions.Unit VOLUME_SI_CUBIC_METER
public static final MeasureOptions.Unit VOLUME_UK_CUBIC_MILE
public static final MeasureOptions.Unit VOLUME_UK_CUBIC_YARD
public static final MeasureOptions.Unit VOLUME_UK_CUP
public static final MeasureOptions.Unit VOLUME_US_CUP
public static final MeasureOptions.Unit VOLUME_SI_CUP_METRIC
public static final MeasureOptions.Unit VOLUME_SI_DECILITER
public static final MeasureOptions.Unit VOLUME_US_FLUID_OUNCE
public static final MeasureOptions.Unit VOLUME_UK_FLUID_OUNCE_IMPERIAL
public static final MeasureOptions.Unit VOLUME_US_GALLON
public static final MeasureOptions.Unit VOLUME_UK_GALLON_IMPERIAL
public static final MeasureOptions.Unit VOLUME_SI_HECTOLITER
public static final MeasureOptions.Unit VOLUME_SI_LITER
public static final MeasureOptions.Unit VOLUME_SI_MEGALITER
public static final MeasureOptions.Unit VOLUME_SI_MILLILITER
public static final MeasureOptions.Unit VOLUME_UK_PINT
public static final MeasureOptions.Unit VOLUME_US_PINT
public static final MeasureOptions.Unit VOLUME_SI_PINT_METRIC
public static final MeasureOptions.Unit VOLUME_UK_QUART
public static final MeasureOptions.Unit VOLUME_US_QUART
public static final MeasureOptions.Unit VOLUME_UK_TABLESPOON
public static final MeasureOptions.Unit VOLUME_US_TABLESPOON
public static final MeasureOptions.Unit VOLUME_UK_TEASPOON
public static final MeasureOptions.Unit VOLUME_US_TEASPOON
public static MeasureOptions.Unit[] values()
for (MeasureOptions.Unit c : MeasureOptions.Unit.values()) System.out.println(c);
public static MeasureOptions.Unit valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getUnitType()
Unit.public String getUnitName()
Unit.public MeasureUnit getMeasureUnit()
MeasureUnit of this Unit.MeasureUnit.public LocaleData.MeasurementSystem getMeasurementSystem()
LocaleData.MeasurementSystem of this Unit.LocaleData.MeasurementSystem.