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 CENTIMETERSA centimeters attribute unit.DAYSA days attribute unit.DECIMAL_DEGREESA decimal degrees attribute unit.DECIMETERSA decimeters attribute unit.FEETA feet attribute unit.HOURSAn hours attribute unit.INCHESA inches attribute unit.KILOMETERSA kilometers attribute unit.METERSA meters attribute unit.MILESA miles attribute unit.MILLIMETERSA millimeters attribute unit.MINUTESA minutes attribute unit.NAUTICAL_MILESA nautical miles attribute unit.SECONDSA seconds attribute unit.UNKNOWNAn unknown unit.YARDSA yards attribute unit. 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AttributeUnitvalueOf(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
 
 - 
 
 -