Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.validator
Interface CreditCardValidator.CreditCardType

Enclosing class:
  CreditCardValidator

public static interface CreditCardValidator.CreditCardType

CreditCardType implementations define how validation is performed for one type/brand of credit card.

Since:
  Validator 1.1.2

Method Summary
`boolean` | `matches(java.lang.String card)` Returns true if the card number matches this type of credit card.

Method Detail

### matches

    public boolean matches(java.lang.String card)

  Returns 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 because `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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002-2006 The Apache Software Foundation. All Rights Reserved.