Interface TmaPolicyPscvValueComparator

All Known Implementing Classes:
TmaPolicyPscvBooleanComparator, TmaPolicyPscvNumericValueComaprator, TmaPolicyPscvStringComparator

public interface TmaPolicyPscvValueComparator
Checks whether a ProductSpecificationCharacteristicValue is within a range.
Since:
1805
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    compare(String prodPscvValue, UsageUnitModel prodPscvUnit, String stMin, String stMax, UsageUnitModel stUnit)
    Checks whether a ProductSpecificationCharacteristicValue is within a range.
  • Method Details

    • compare

      boolean compare(String prodPscvValue, UsageUnitModel prodPscvUnit, String stMin, String stMax, UsageUnitModel stUnit)
      Checks whether a ProductSpecificationCharacteristicValue is within a range.
      Parameters:
      prodPscvValue - the value to be checked
      prodPscvUnit - the unit for the value to be checked
      stMin - the lower value of the range
      stMax - the higher value of the range
      stUnit - the unit for the range
      Returns:
      true if the value is within the range; false otherwise