public static interface CreditCardValidator.CreditCardType
Modifier and Type | Method and Description |
---|---|
boolean |
matches(String card)
Returns true if the card number matches this type of credit
card.
|
boolean matches(String 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.card
- The card number, never null.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.