Enum Quantity.Length.LengthUnit
- java.lang.Object
-
- java.lang.Enum<Quantity.Length.LengthUnit>
-
- gaia.cu9.ari.gaiaorbit.util.units.Quantity.Length.LengthUnit
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Quantity.Length.LengthUnit>
- Enclosing class:
- Quantity.Length
public static enum Quantity.Length.LengthUnit extends java.lang.Enum<Quantity.Length.LengthUnit>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Quantity.Length.LengthUnit
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Quantity.Length.LengthUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MM
public static final Quantity.Length.LengthUnit MM
Millimetres
-
CM
public static final Quantity.Length.LengthUnit CM
Centimetres
-
M
public static final Quantity.Length.LengthUnit M
Metres
-
KM
public static final Quantity.Length.LengthUnit KM
Kilometres
-
AU
public static final Quantity.Length.LengthUnit AU
Astronomical units
-
PC
public static final Quantity.Length.LengthUnit PC
Parsecs
-
MPC
public static final Quantity.Length.LengthUnit MPC
Megaparsecs
-
-
Method Detail
-
values
public static Quantity.Length.LengthUnit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Quantity.Length.LengthUnit c : Quantity.Length.LengthUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Quantity.Length.LengthUnit valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-