Enum Class SpaceAxes.SpaceUnit
- All Implemented Interfaces:
Serializable,Comparable<SpaceAxes.SpaceUnit>,Constable
- Enclosing class:
- SpaceAxes
Possible SI and imperial units for distance in physical space.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic SpaceAxes.SpaceUnitGet the SpaceUnit corresponding to a String value.static SpaceAxes.SpaceUnitReturns the enum constant of this class with the specified name.static SpaceAxes.SpaceUnit[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ATTOMETER
-
ANGSTROM
-
CENTIMETER
-
DECIMETER
-
EXAMETER
-
FEMTOMETER
-
FOOT
-
GIGAMETER
-
HECTOMETER
-
INCH
-
KILOMETER
-
MEGAMETER
-
METER
-
MICROMETER
-
MILE
-
MILLIMETER
-
NANOMETER
-
PARSEC
-
PETAMETER
-
PICOMETER
-
TERAMETER
-
YARD
-
YOCTOMETER
-
YOTTAMETER
-
ZEPTOMETER
-
ZETTAMETER
-
NO_UNIT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getUnit
Get the SpaceUnit corresponding to a String value.- Parameters:
unit- the unit as a string- Returns:
- the corresponding unit, or NO_UNIT if not found.
-