public class DefaultCardValidator extends java.lang.Object implements CardValidator
Constructor and Description |
---|
DefaultCardValidator() |
Modifier and Type | Method and Description |
---|---|
void |
setLuhnCalculator(LUHNCalculator luhnCalculator) |
void |
validate(Card card) |
public void validate(Card card) throws InvalidCardException
validate
in interface CardValidator
InvalidCardException
public void setLuhnCalculator(LUHNCalculator luhnCalculator)