Class TmaPolicyPscvNumericValueComaprator
java.lang.Object
de.hybris.platform.b2ctelcoservices.compatibility.validators.impl.TmaPolicyPscvNumericValueComaprator
- All Implemented Interfaces:
TmaPolicyPscvValueComparator
public class TmaPolicyPscvNumericValueComaprator
extends Object
implements TmaPolicyPscvValueComparator
Checks whether numeric ProductSpecificationCharacteristicValues are within a range.
- Since:
- 1805
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancompare(String prodPscvValue, UsageUnitModel prodPscvUnit, String stMin, String stMax, UsageUnitModel stUnit) Checks whether a ProductSpecificationCharacteristicValue is within a range.voidsetConversionStrategy(TmaUnitConversionStrategy conversionStrategy)
-
Constructor Details
-
TmaPolicyPscvNumericValueComaprator
public TmaPolicyPscvNumericValueComaprator()
-
-
Method Details
-
compare
public boolean compare(String prodPscvValue, UsageUnitModel prodPscvUnit, String stMin, String stMax, UsageUnitModel stUnit) Description copied from interface:TmaPolicyPscvValueComparatorChecks whether a ProductSpecificationCharacteristicValue is within a range.- Specified by:
comparein interfaceTmaPolicyPscvValueComparator- Parameters:
prodPscvValue- the value to be checkedprodPscvUnit- the unit for the value to be checkedstMin- the lower value of the rangestMax- the higher value of the rangestUnit- the unit for the range- Returns:
- true if the value is within the range; false otherwise
-
getConversionStrategy
-
setConversionStrategy
-