Class CreditCardValidator.Mastercard
java.lang.Object
org.apache.commons.validator.CreditCardValidator.Mastercard
- All Implemented Interfaces:
CreditCardValidator.CreditCardType
- Enclosing class:
CreditCardValidator
private static class CreditCardValidator.Mastercard
extends Object
implements CreditCardValidator.CreditCardType
- Since:
- Validator 1.1
- Version:
- $Revision: 1651811 $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
Mastercard
private Mastercard()
-
-
Method Details
-
matches
Description copied from interface:CreditCardValidator.CreditCardTypeReturns true if the card number matches this type of credit card. Note that this method is not responsible for analyzing the general form of the card number becauseCreditCardValidatorperforms those checks before calling this method. It is generally only required to valid the length and prefix of the number to determine if it's the correct type.- Specified by:
matchesin interfaceCreditCardValidator.CreditCardType- Parameters:
card- The card number, never null.- Returns:
- true if the number matches.
-