Package com.skava.strategy
Interface ZipCodeValidatorStrategy
- All Known Implementing Classes:
DefaultZipCodeValidatorStrategyImpl
public interface ZipCodeValidatorStrategy
This class provides functionality of validating zipcode with the zipcode validator config.
- Author:
- Infosys Equinox *
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isValidZipCode
(String zipCode, org.json.JSONObject zipCodeValidatorConfig) Checks whether the given zipCode is valid zipCode or not.
-
Method Details
-
isValidZipCode
Checks whether the given zipCode is valid zipCode or not.- Parameters:
zipCode
- Indicates the zipCode of an user which is used for validating the zipCode by validator config.zipCodeValidatorConfig
- HoldsJSONObject
which is used for validating the zipCode by validator config.- Returns:
- True, if it is a valid zipCode
-