Class SINValidator
java.lang.Object
org.apache.commons.validator.routines.SINValidator
SIN (Canadian social insurance number) Validator.
The social insurance number (SIN) is a unique identifier and has become a national identification number, see Wikipedia.
- Since:
- 2.10.6
- Author:
- EUG https://github.com/homebeaver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SINValidatorReturn a singleton instance of the validator using the default formatsbooleanValidate a SIN
-
Constructor Details
-
SINValidator
public SINValidator()
-
-
Method Details
-
getInstance
Return a singleton instance of the validator using the default formats- Returns:
- A singleton instance of the validator
-
isValid
Validate a SIN- Parameters:
code- The value validation is being performed on- Returns:
trueif the value is valid
-