Enum Constant | Description |
---|---|
ARCSEC |
Arcseconds.
|
DEGREE |
Degrees.
|
MAS |
Milliarcseconds.
|
MINUTE |
Minutes.
|
RADIAN |
Radians.
|
UAS |
Microarcseconds.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getFullName() |
Returns the full-text name of this unit.
|
java.lang.String |
getName() |
Returns the canonical name of this unit.
|
static AngleUnit |
getNamedUnit(java.lang.String name) |
Returns the AngleUnit instance that corresponds to
a user-specified unit name.
|
double |
getValueInDegrees() |
Returns the value of this unit in degrees.
|
java.lang.String |
toString() |
|
static AngleUnit |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static AngleUnit[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AngleUnit RADIAN
public static final AngleUnit DEGREE
public static final AngleUnit MINUTE
public static final AngleUnit ARCSEC
public static final AngleUnit MAS
public static final AngleUnit UAS
public static AngleUnit[] values()
for (AngleUnit c : AngleUnit.values()) System.out.println(c);
public static AngleUnit 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 double getValueInDegrees()
public java.lang.String getName()
public java.lang.String getFullName()
public java.lang.String toString()
toString
in class java.lang.Enum<AngleUnit>
public static AngleUnit getNamedUnit(java.lang.String name)
name
- user-specified nameCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.