Package in.fssa.mambilling.validator
Class PriceValidator
java.lang.Object
in.fssa.mambilling.validator.PriceValidator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
validateDiscount
(double discount) static void
validateId
(int id) static void
validateMrp
(double mrp) static void
validateTax
(double tax)
-
Constructor Details
-
PriceValidator
public PriceValidator()
-
-
Method Details
-
validate
- Throws:
ValidationException
-
validateId
- Throws:
ValidationException
-
validateMrp
- Throws:
ValidationException
-
validateTax
- Throws:
ValidationException
-
validateDiscount
- Throws:
ValidationException
-