Class VorteilsCardValidator
java.lang.Object
org.apache.commons.validator.routines.VorteilsCardValidator
- All Implemented Interfaces:
Serializable
Vorteilscard number validation.
Vorteilscard is a discount subscription program offered by ÖBB, the Austrian national railway company.
The card number is a 16-digit number. For example, it may start with 5047.
For further information see Wikipedia.
- Since:
- 2.10.5
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic VorteilsCardValidatorGets the singleton instance of this validator.booleanTests whether the code is a valid card number.
-
Method Details
-
getInstance
Gets the singleton instance of this validator.- Returns:
- A singleton instance of the card validator.
-
isValid
Tests whether the code is a valid card number.- Parameters:
code- The code to validate.- Returns:
trueif a card number, otherwisefalse.
-