private class CreditCardValidator.Visa extends Object implements CreditCardValidator.CreditCardType
Modifier | Constructor and Description |
---|---|
private |
CreditCardValidator.Visa() |
private static final String PREFIX
public boolean matches(String card)
CreditCardValidator.CreditCardType
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.matches
in interface CreditCardValidator.CreditCardType
card
- The card number, never null.Copyright (c) 2001-2004 Apache Software Foundation