public enum UnitType extends Enum<UnitType>
Represents unit types.
| Enum Constant and Description |
|---|
Angstrom
Angstrom unit
|
AstronomicalUnit
Astronomical unit
|
Centimenter
Centimeter unit
|
Custom
Custom unit.
|
Decameter
Decameter unit
|
Decimeter
Decimeter unit
|
Foot
Foot unit value.
|
Gigameter
Gigameter unit
|
Hectometer
Hectometer unit
|
Inch
Inch unit value.
|
Kilometer
Kilometer unit
|
LightYear
Light year unit
|
Meter
Meter unit
|
MicroInch
MicroInch unit
|
Micrometer
Micrometer unit, the same as micron
|
Mil
Mil unit (thousandth of an inch).
|
Mile
Mile unit value.
|
Millimeter
Millimeter unit
|
Nanometer
Nanometer unit
|
Parsec
Parsec unit
|
Unitless
Unitless unit.
|
Yard
Yard unit value.
|
| Modifier and Type | Method and Description |
|---|---|
static UnitType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnitType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitType Kilometer
Kilometer unit
public static final UnitType Meter
Meter unit
public static final UnitType Centimenter
Centimeter unit
public static final UnitType Millimeter
Millimeter unit
public static final UnitType Micrometer
Micrometer unit, the same as micron
public static final UnitType Nanometer
Nanometer unit
public static final UnitType Angstrom
Angstrom unit
public static final UnitType Decimeter
Decimeter unit
public static final UnitType Decameter
Decameter unit
public static final UnitType Hectometer
Hectometer unit
public static final UnitType Gigameter
Gigameter unit
public static final UnitType AstronomicalUnit
Astronomical unit
public static final UnitType LightYear
Light year unit
public static final UnitType Parsec
Parsec unit
public static final UnitType Mile
Mile unit value.
public static final UnitType Yard
Yard unit value.
public static final UnitType Foot
Foot unit value.
public static final UnitType Inch
Inch unit value.
public static final UnitType Mil
Mil unit (thousandth of an inch).
public static final UnitType MicroInch
MicroInch unit
public static final UnitType Custom
Custom unit.
public static final UnitType Unitless
Unitless unit.
public static UnitType[] values()
for (UnitType c : UnitType.values()) System.out.println(c);
public static UnitType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.