public enum AreaUnit extends Enum<AreaUnit>
Enum Constant and Description |
---|
ACRE |
CM2 |
DEFAULT |
FT2 |
HECTARE |
IN2 |
KM2 |
M2 |
MILE2 |
MM2 |
YD2 |
Modifier and Type | Field and Description |
---|---|
int |
value |
Modifier and Type | Method and Description |
---|---|
static AreaUnit |
fromValue(int value) |
static AreaUnit |
fromVectorValue(int value) |
String |
toPerimString() |
static AreaUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AreaUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AreaUnit DEFAULT
public static final AreaUnit MM2
public static final AreaUnit CM2
public static final AreaUnit M2
public static final AreaUnit HECTARE
public static final AreaUnit KM2
public static final AreaUnit IN2
public static final AreaUnit FT2
public static final AreaUnit YD2
public static final AreaUnit ACRE
public static final AreaUnit MILE2
public static AreaUnit[] values()
for (AreaUnit c : AreaUnit.values()) System.out.println(c);
public static AreaUnit valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static AreaUnit fromValue(int value)
public static AreaUnit fromVectorValue(int value)
public String toPerimString()
Copyright © 2022. All rights reserved.