|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Epoch> edu.nrao.sss.astronomy.Epoch
public enum Epoch
An enumeration of astronomical epochs.
An epoch in astronomy is a point in time for which celestial positions are specified. See Wikipedia for more information.
Enum Constant Summary | |
---|---|
B1950
Besselian epoch B1950.0. |
|
J2000
Julian epoch J2000.0. |
|
UNKNOWN
An unknown proposal status. |
Method Summary | |
---|---|
static Epoch |
fromString(String text)
Returns an epoch for the given text . |
static Epoch |
getDefault()
Returns a default epoch. |
String |
toString()
Returns a text representation of this enumeration constant. |
static Epoch |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Epoch[] |
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 Epoch B1950
public static final Epoch J2000
public static final Epoch UNKNOWN
Method Detail |
---|
public static Epoch[] values()
for (Epoch c : Epoch.values()) System.out.println(c);
public static Epoch valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static Epoch getDefault()
public String toString()
toString
in class Enum<Epoch>
public static Epoch fromString(String text)
text
.
The format of text
is somewhat forgiving, in that
the search is not case-sensitive and will ignore leading
and/or trailing whitespace. In addition, several forms
of the name are permitted. For example, both "J2000"
and "J2000.0" will be resolved to J2000
.
If no epoch can be found for text
,
UNKNOWN
is returned.
text
- the name of an epoch.
name
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |