public enum UnitsLength extends Enum<UnitsLength> implements Enumeration
Enum Constant and Description |
---|
ANGSTROM
ångström SI-derived unit.
|
ASTRONOMICALUNIT
astronomical unit SI-derived unit.
|
ATTOMETER
attometer SI unit.
|
CENTIMETER
centimeter SI unit.
|
DECAMETER
decameter SI unit.
|
DECIMETER
decimeter SI unit.
|
EXAMETER
exameter SI unit.
|
FEMTOMETER
femtometer SI unit.
|
FOOT
foot Imperial unit.
|
GIGAMETER
gigameter SI unit.
|
HECTOMETER
hectometer SI unit.
|
INCH
inch Imperial unit.
|
KILOMETER
kilometer SI unit.
|
LIGHTYEAR
light year.
|
LINE
line Imperial unit (1/12 inch).
|
MEGAMETER
megameter SI unit.
|
METER
meter SI unit.
|
MICROMETER
micrometer SI unit.
|
MILE
terrestrial mile Imperial unit.
|
MILLIMETER
millimeter SI unit.
|
NANOMETER
nanometer SI unit.
|
PARSEC
parsec.
|
PETAMETER
petameter SI unit.
|
PICOMETER
picometer SI unit.
|
PIXEL
pixel abstract unit.
|
POINT
typography point Imperial-derived unit (1/72 inch).
|
REFERENCEFRAME
reference frame abstract unit.
|
TERAMETER
terameter SI unit.
|
THOU
thou Imperial unit (or mil, 1/1000 inch).
|
YARD
yard Imperial unit.
|
YOCTOMETER
yoctometer SI unit.
|
YOTTAMETER
yottameter SI unit.
|
ZEPTOMETER
zeptometer SI unit.
|
ZETTAMETER
zettameter SI unit.
|
Modifier and Type | Method and Description |
---|---|
static <T extends Number> |
create(T newValue,
UnitsLength newUnit) |
static <T extends PrimitiveNumber> |
create(T newValue,
UnitsLength newUnit) |
static UnitsLength |
fromString(String value) |
String |
getValue() |
String |
toString() |
static UnitsLength |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnitsLength[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitsLength YOTTAMETER
public static final UnitsLength ZETTAMETER
public static final UnitsLength EXAMETER
public static final UnitsLength PETAMETER
public static final UnitsLength TERAMETER
public static final UnitsLength GIGAMETER
public static final UnitsLength MEGAMETER
public static final UnitsLength KILOMETER
public static final UnitsLength HECTOMETER
public static final UnitsLength DECAMETER
public static final UnitsLength METER
public static final UnitsLength DECIMETER
public static final UnitsLength CENTIMETER
public static final UnitsLength MILLIMETER
public static final UnitsLength MICROMETER
public static final UnitsLength NANOMETER
public static final UnitsLength PICOMETER
public static final UnitsLength FEMTOMETER
public static final UnitsLength ATTOMETER
public static final UnitsLength ZEPTOMETER
public static final UnitsLength YOCTOMETER
public static final UnitsLength ANGSTROM
public static final UnitsLength THOU
public static final UnitsLength LINE
public static final UnitsLength INCH
public static final UnitsLength FOOT
public static final UnitsLength YARD
public static final UnitsLength MILE
public static final UnitsLength ASTRONOMICALUNIT
public static final UnitsLength LIGHTYEAR
public static final UnitsLength PARSEC
public static final UnitsLength POINT
public static final UnitsLength PIXEL
public static final UnitsLength REFERENCEFRAME
public static UnitsLength[] values()
for (UnitsLength c : UnitsLength.values()) System.out.println(c);
public static UnitsLength 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 nullpublic static UnitsLength fromString(String value) throws EnumerationException
EnumerationException
public String getValue()
public String toString()
toString
in class Enum<UnitsLength>
public static <T extends PrimitiveNumber> Length create(T newValue, UnitsLength newUnit)
public static <T extends Number> Length create(T newValue, UnitsLength newUnit)
Copyright © 2006–2020 Open Microscopy Environment. All rights reserved.