Module com.esri.arcgisruntime
Class UtilityCategoryComparison
java.lang.Object
com.esri.arcgisruntime.utilitynetworks.UtilityTraceCondition
com.esri.arcgisruntime.utilitynetworks.UtilityTraceConditionalExpression
com.esri.arcgisruntime.utilitynetworks.UtilityCategoryComparison
A condition evaluating whether a particular
UtilityCategory
exists on a feature in the trace.- Since:
- 100.7.0
-
Constructor Summary
ConstructorDescriptionUtilityCategoryComparison
(UtilityCategory category, UtilityCategoryComparisonOperator categoryOperator) Creates a condition evaluating whether aUtilityCategory
exists on a feature.UtilityCategoryComparison
(String categoryName, UtilityCategoryComparisonOperator comparisonOperator) Creates a condition evaluating whether a category with this name exists on a feature. -
Method Summary
Modifier and TypeMethodDescriptionGets theUtilityCategory
to evaluate as part of the condition.Gets the type of comparison to do between theUtilityCategory
and each feature in the trace.
-
Constructor Details
-
UtilityCategoryComparison
public UtilityCategoryComparison(String categoryName, UtilityCategoryComparisonOperator comparisonOperator) Creates a condition evaluating whether a category with this name exists on a feature.- Parameters:
categoryName
- the name of the category to evaluate as part of the conditioncomparisonOperator
- the type of comparison to do between the category name and each feature in the trace.- Throws:
NullPointerException
- if categoryName is nullNullPointerException
- if comparisonOperator is null- Since:
- 200.1.0
-
UtilityCategoryComparison
public UtilityCategoryComparison(UtilityCategory category, UtilityCategoryComparisonOperator categoryOperator) Creates a condition evaluating whether aUtilityCategory
exists on a feature.- Parameters:
category
- the category to evaluate as part of the conditioncategoryOperator
- the type of comparison to do between theUtilityCategory
and each feature in the trace.- Throws:
IllegalArgumentException
- if category is nullIllegalArgumentException
- if categoryOperator is null- Since:
- 100.7.0
-
-
Method Details
-
getCategory
Gets theUtilityCategory
to evaluate as part of the condition.- Returns:
- the utility category to evaluate as part of the condition
- Since:
- 100.7.0
-
getComparisonOperator
Gets the type of comparison to do between theUtilityCategory
and each feature in the trace.- Returns:
- the type of comparison to do
- Since:
- 100.7.0
-