public enum AreaUnit extends Enum<AreaUnit>
| Enum Constant and Description |
|---|
km2
Square kilometers
|
m2
Square meters
|
| Modifier and Type | Method and Description |
|---|---|
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 km2
public static final AreaUnit m2
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 nullCopyright © 2018 Uber Open Source. All rights reserved.