|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<DistanceUnits>
gov.nasa.gsfc.spdf.ssc.DistanceUnits
public enum DistanceUnits
This class represents the different units for distance values supported by SSC.
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 Summary | |
|---|---|
E_KM
Scientific Notation Kilometers. |
|
INT_KM
Integer Kilometers. |
|
KM
Kilometers (km). |
|
RE
Earth Radii (RE). |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final DistanceUnits RE
public static final DistanceUnits KM
public static final DistanceUnits INT_KM
public static final DistanceUnits E_KM
| Method Detail |
|---|
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 name
java.lang.NullPointerException - if the argument is nullpublic int value()
public static DistanceUnits fromValue(int value)
value - integer value corresponding to a distance units
java.lang.IllegalArgumentException - if the given value does not
correspond to any distance unitspublic java.lang.String toString()
toString in class java.lang.Enum<DistanceUnits>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||