Class MilesAndMoreCardValidator
java.lang.Object
org.apache.commons.validator.routines.MilesAndMoreCardValidator
- All Implemented Interfaces:
Serializable
Perform MilesAndMore service card number validations.
MilesAndMore is a frequent flyer program from Austrian Airlines, Brussels Airlines, Lufthansa and SWISS.
The service card number is a 15-digit number. For example, it may start with 9999 (without advertising consent), 9920 (without frequent flyer status), 9922 (Frequent Traveller), 222 (Senator) or 333 (HON Circle Member).
For further information see Wikipedia.
- Since:
- 2.10.5
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic MilesAndMoreCardValidatorGets the singleton instance of this validator.booleanTests whether the code is a valid service 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 service card number.- Parameters:
code- The code to validate.- Returns:
trueif a service card number, otherwisefalse.
-