Class MilesAndMoreCardValidator

java.lang.Object
org.apache.commons.validator.routines.MilesAndMoreCardValidator
All Implemented Interfaces:
Serializable

public final class MilesAndMoreCardValidator extends Object implements 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 Details

    • getInstance

      public static MilesAndMoreCardValidator getInstance()
      Gets the singleton instance of this validator.
      Returns:
      A singleton instance of the card validator.
    • isValid

      public boolean isValid(String code)
      Tests whether the code is a valid service card number.
      Parameters:
      code - The code to validate.
      Returns:
      true if a service card number, otherwise false.