public enum DistanceUnits extends java.lang.Enum<DistanceUnits>
Note: The integer values for this enumeration cannot be arbitrarily assigned. They must match the values expected by other parts of the SSC software.
Enum Constant and Description |
---|
E_KM
Scientific Notation Kilometers.
|
INT_KM
Integer Kilometers.
|
KM
Kilometers (km).
|
RE
Earth Radii (RE).
|
Modifier and Type | Method and Description |
---|---|
static DistanceUnits |
fromValue(int value)
Provides the distance units corresponding to the given integer
value.
|
java.lang.String |
toString()
Provides a string representation of this distance units.
|
int |
value()
Provides the integer value corresponding to this distance units.
|
static DistanceUnits |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DistanceUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DistanceUnits RE
public static final DistanceUnits KM
public static final DistanceUnits INT_KM
public static final DistanceUnits E_KM
public static DistanceUnits[] values()
for (DistanceUnits c : DistanceUnits.values()) System.out.println(c);
public static DistanceUnits valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int value()
public static DistanceUnits fromValue(int value)
value
- integer value corresponding to a distance unitsjava.lang.IllegalArgumentException
- if the given value does not
correspond to any distance unitspublic java.lang.String toString()
toString
in class java.lang.Enum<DistanceUnits>
SSC Feedback.
Copyright © 2003-2018 United States Government as represented by the National Aeronautics and Space Administration. No copyright is claimed in the United States under Title 17, U.S.Code. All Other Rights Reserved.