
public static enum GeoConstants.UnitOfMeasure extends Enum<GeoConstants.UnitOfMeasure>
| Enum Constant and Description |
|---|
foot |
kilometer |
meter |
nauticalMile |
statuteMile |
| Modifier and Type | Method and Description |
|---|---|
double |
getConversionFactorToMeters() |
int |
getStringResId() |
static GeoConstants.UnitOfMeasure |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GeoConstants.UnitOfMeasure[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GeoConstants.UnitOfMeasure meter
public static final GeoConstants.UnitOfMeasure kilometer
public static final GeoConstants.UnitOfMeasure statuteMile
public static final GeoConstants.UnitOfMeasure nauticalMile
public static final GeoConstants.UnitOfMeasure foot
public static GeoConstants.UnitOfMeasure[] values()
for (GeoConstants.UnitOfMeasure c : GeoConstants.UnitOfMeasure.values()) System.out.println(c);
public static GeoConstants.UnitOfMeasure 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 double getConversionFactorToMeters()
public int getStringResId()