Enum Constant and Description |
---|
ACRES |
FOOT2 |
KILOMETER2 |
METER2 |
MILE2 |
NAUTICALMILE2 |
YARD2 |
Modifier and Type | Field and Description |
---|---|
static int |
AC |
static int |
ENGLISH |
static int |
METRIC |
static int |
NM |
Modifier and Type | Method and Description |
---|---|
static Area |
findFromAbbrev(java.lang.String abbrev) |
static Area |
findFromPluralName(java.lang.String pluralName) |
static Area |
findFromValue(int value) |
java.lang.String |
getAbbrev() |
java.lang.String |
getPlural() |
java.lang.String |
getSingular() |
int |
getType() |
int |
getValue() |
java.lang.String |
toString() |
static Area |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Area[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Area KILOMETER2
public static final Area METER2
public static final Area MILE2
public static final Area YARD2
public static final Area FOOT2
public static final Area NAUTICALMILE2
public static final Area ACRES
public static final int ENGLISH
public static final int METRIC
public static final int NM
public static final int AC
public static Area[] values()
for (Area c : Area.values()) System.out.println(c);
public static Area 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 int getType()
public java.lang.String getSingular()
public java.lang.String getPlural()
public java.lang.String getAbbrev()
public java.lang.String toString()
toString
in class java.lang.Enum<Area>
public static Area findFromPluralName(java.lang.String pluralName)
public static Area findFromAbbrev(java.lang.String abbrev)
public static Area findFromValue(int value)