Class UtilityCategoryComparison


public final class UtilityCategoryComparison extends UtilityTraceConditionalExpression
A condition evaluating whether a particular UtilityCategory exists on a feature in the trace.
Since:
100.7.0
  • 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 condition
      comparisonOperator - the type of comparison to do between the category name and each feature in the trace.
      Throws:
      NullPointerException - if categoryName is null
      NullPointerException - if comparisonOperator is null
      Since:
      200.1.0
    • UtilityCategoryComparison

      public UtilityCategoryComparison(UtilityCategory category, UtilityCategoryComparisonOperator categoryOperator)
      Creates a condition evaluating whether a UtilityCategory exists on a feature.
      Parameters:
      category - the category to evaluate as part of the condition
      categoryOperator - the type of comparison to do between the UtilityCategory and each feature in the trace.
      Throws:
      IllegalArgumentException - if category is null
      IllegalArgumentException - if categoryOperator is null
      Since:
      100.7.0
  • Method Details

    • getCategory

      public UtilityCategory getCategory()
      Gets the UtilityCategory to evaluate as part of the condition.
      Returns:
      the utility category to evaluate as part of the condition
      Since:
      100.7.0
    • getComparisonOperator

      public UtilityCategoryComparisonOperator getComparisonOperator()
      Gets the type of comparison to do between the UtilityCategory and each feature in the trace.
      Returns:
      the type of comparison to do
      Since:
      100.7.0