Class CreditCardValidator.CreditCardRange
- java.lang.Object
-
- org.apache.commons.validator.routines.CreditCardValidator.CreditCardRange
-
- Enclosing class:
- CreditCardValidator
public static class CreditCardValidator.CreditCardRange extends java.lang.Object
Class that represents a credit card range.- Since:
- 1.6
-
-
Constructor Summary
Constructors Constructor Description CreditCardRange(java.lang.String low, java.lang.String high, int[] lengths)
Create a credit card range specifier for use in validation of the number syntax including the IIN range.CreditCardRange(java.lang.String low, java.lang.String high, int minLen, int maxLen)
Create a credit card range specifier for use in validation of the number syntax including the IIN range.
-
-
-
Constructor Detail
-
CreditCardRange
public CreditCardRange(java.lang.String low, java.lang.String high, int minLen, int maxLen)
Create a credit card range specifier for use in validation of the number syntax including the IIN range.The low and high parameters may be shorter than the length of an IIN (currently 6 digits) in which case subsequent digits are ignored and may range from 0-9.
The low and high parameters may be different lengths. e.g. Discover "644" and "65".- Parameters:
low
- the low digits of the IIN rangehigh
- the high digits of the IIN rangeminLen
- the minimum length of the entire numbermaxLen
- the maximum length of the entire number
-
CreditCardRange
public CreditCardRange(java.lang.String low, java.lang.String high, int[] lengths)
Create a credit card range specifier for use in validation of the number syntax including the IIN range.The low and high parameters may be shorter than the length of an IIN (currently 6 digits) in which case subsequent digits are ignored and may range from 0-9.
The low and high parameters may be different lengths. e.g. Discover "644" and "65".- Parameters:
low
- the low digits of the IIN rangehigh
- the high digits of the IIN rangelengths
- array of valid lengths
-
-