Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEGREE_SYMBOL |
Modifier and Type | Method and Description |
---|---|
static Angle |
findFromAbbrev(java.lang.String abbrev) |
static Angle |
findFromValue(int value) |
java.lang.String |
getAbbrev() |
java.lang.String |
getName() |
int |
getValue() |
java.lang.String |
toString() |
static Angle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Angle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Angle DEGREE
public static final Angle MIL
public static final Angle RADIAN
public static final java.lang.String DEGREE_SYMBOL
public static Angle[] values()
for (Angle c : Angle.values()) System.out.println(c);
public static Angle 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 getValue()
public java.lang.String getAbbrev()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Enum<Angle>
public static Angle findFromValue(int value)
value
- the integer value to be turned back into an enumerated type.public static Angle findFromAbbrev(java.lang.String abbrev)
abbrev
- the abbreviation to be turned back into a enumerated type.