org.apache.commons.validator
public interface CreditCardValidator.CreditCardType
Since: Validator 1.1.2
Method Summary | |
---|---|
boolean | matches(String card)
Returns true if the card number matches this type of credit
card. |
CreditCardValidator
performs 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.Parameters: card The card number, never null.
Returns: true if the number matches.