Java org.apache.commons.validator CreditCardValidator fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.validator CreditCardValidator fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.validator CreditCardValidator.

The text is from its open source code.

Field

intAMEX
Option specifying that American Express cards are allowed.
intVISA
Option specifying that Visa cards are allowed.
intMASTERCARD
Option specifying that Mastercard cards are allowed.
intDISCOVER
Option specifying that Discover cards are allowed.

Constructor

CreditCardValidator()
Create a new CreditCardValidator with default options.
CreditCardValidator(int options)
Creates a new CreditCardValidator with the specified options.

Method

booleanisValid(String card)
Checks if the field is a valid credit card number.