Class VorteilsCardValidator

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

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

    • getInstance

      public static VorteilsCardValidator 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 card number.
      Parameters:
      code - The code to validate.
      Returns:
      true if a card number, otherwise false.