| Enum Constant and Description |
|---|
DEGREE
To represent slope in angle-unit
|
PERCENT
To represent slope in percentage-unit
|
RADIAN
To represent slope in radian-unit
|
| Modifier and Type | Method and Description |
|---|---|
static SlopeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SlopeType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final SlopeType DEGREE
public static final SlopeType PERCENT
public static final SlopeType RADIAN
public static SlopeType[] values()
for (SlopeType c : SlopeType.values())
System.out.println(c);
public static SlopeType 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 null