public enum DistanceUnit extends Enum<DistanceUnit> implements Serializable
Enum Constant and Description |
---|
FEET
English units of feet.
|
KILOMETERS
Metric units of kilometers.
|
METERS
Metric units of meters.
|
MILES
English units of miles.
|
Modifier and Type | Method and Description |
---|---|
static DistanceUnit |
fromValue(String v)
This attempts to convert the string into a DistanceUnit.
|
static DistanceUnit |
fromValueWithDefault(String v)
This attempts to convert the string into a DistanceUnit.
|
com.mapinfo.midev.unit.LinearUnit |
getLinearUnit()
Returns the LinearUnit equivalent to this DistanceUnit.
|
String |
value()
Returns the string representing the type of unit
|
static DistanceUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DistanceUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DistanceUnit FEET
public static final DistanceUnit METERS
public static final DistanceUnit MILES
public static final DistanceUnit KILOMETERS
public static DistanceUnit[] values()
for (DistanceUnit c : DistanceUnit.values()) System.out.println(c);
public static DistanceUnit 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 DistanceUnit fromValue(String v)
v
- represents the unit typepublic static DistanceUnit fromValueWithDefault(String v)
v
- represents the unit typepublic String value()
public com.mapinfo.midev.unit.LinearUnit getLinearUnit()
Copyright © 2024. All rights reserved.