Enum AttributeUnit
- java.lang.Object
-
- java.lang.Enum<AttributeUnit>
-
- com.esri.arcgisruntime.tasks.networkanalysis.AttributeUnit
-
- All Implemented Interfaces:
Serializable
,Comparable<AttributeUnit>
public enum AttributeUnit extends Enum<AttributeUnit>
Defines the units in which the cost values are measured.- Since:
- 100.0.0
- See Also:
CostAttribute.getUnit()
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CENTIMETERS
A centimeters attribute unit.DAYS
A days attribute unit.DECIMAL_DEGREES
A decimal degrees attribute unit.DECIMETERS
A decimeters attribute unit.FEET
A feet attribute unit.HOURS
An hours attribute unit.INCHES
A inches attribute unit.KILOMETERS
A kilometers attribute unit.METERS
A meters attribute unit.MILES
A miles attribute unit.MILLIMETERS
A millimeters attribute unit.MINUTES
A minutes attribute unit.NAUTICAL_MILES
A nautical miles attribute unit.SECONDS
A seconds attribute unit.UNKNOWN
An unknown unit.YARDS
A yards attribute unit.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AttributeUnit
valueOf(String name)
Returns the enum constant of this type with the specified name.static AttributeUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final AttributeUnit UNKNOWN
An unknown unit.- Since:
- 100.0.0
-
INCHES
public static final AttributeUnit INCHES
A inches attribute unit.- Since:
- 100.10.0
-
FEET
public static final AttributeUnit FEET
A feet attribute unit.- Since:
- 100.0.0
-
YARDS
public static final AttributeUnit YARDS
A yards attribute unit.- Since:
- 100.10.0
-
MILES
public static final AttributeUnit MILES
A miles attribute unit.- Since:
- 100.0.0
-
MILLIMETERS
public static final AttributeUnit MILLIMETERS
A millimeters attribute unit.- Since:
- 100.10.0
-
CENTIMETERS
public static final AttributeUnit CENTIMETERS
A centimeters attribute unit.- Since:
- 100.10.0
-
DECIMETERS
public static final AttributeUnit DECIMETERS
A decimeters attribute unit.- Since:
- 100.10.0
-
METERS
public static final AttributeUnit METERS
A meters attribute unit.- Since:
- 100.0.0
-
KILOMETERS
public static final AttributeUnit KILOMETERS
A kilometers attribute unit.- Since:
- 100.0.0
-
NAUTICAL_MILES
public static final AttributeUnit NAUTICAL_MILES
A nautical miles attribute unit.- Since:
- 100.0.0
-
DECIMAL_DEGREES
public static final AttributeUnit DECIMAL_DEGREES
A decimal degrees attribute unit.- Since:
- 100.0.0
-
SECONDS
public static final AttributeUnit SECONDS
A seconds attribute unit.- Since:
- 100.10.0
-
MINUTES
public static final AttributeUnit MINUTES
A minutes attribute unit.- Since:
- 100.0.0
-
HOURS
public static final AttributeUnit HOURS
An hours attribute unit.- Since:
- 100.10.0
-
DAYS
public static final AttributeUnit DAYS
A days attribute unit.- Since:
- 100.10.0
-
-
Method Detail
-
values
public static AttributeUnit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AttributeUnit c : AttributeUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttributeUnit valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-