Class TmaPolicyPscvBooleanComparator

java.lang.Object
de.hybris.platform.b2ctelcoservices.compatibility.validators.impl.TmaPolicyPscvBooleanComparator
All Implemented Interfaces:
TmaPolicyPscvValueComparator

public class TmaPolicyPscvBooleanComparator extends Object implements TmaPolicyPscvValueComparator
Checks whether a boolean ProductSpecificationCharacteristicValue matches a given value.
Since:
1805
  • Constructor Details

    • TmaPolicyPscvBooleanComparator

      public TmaPolicyPscvBooleanComparator()
  • Method Details

    • compare

      public boolean compare(String prodPscvValue, UsageUnitModel prodPscvUnit, String stMin, String stMax, UsageUnitModel stUnit)
      Description copied from interface: TmaPolicyPscvValueComparator
      Checks whether a ProductSpecificationCharacteristicValue is within a range.
      Specified by:
      compare in interface TmaPolicyPscvValueComparator
      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