org.hibernate.validator.constraints.impl
Class LuhnValidator
java.lang.Object
org.hibernate.validator.constraints.impl.LuhnValidator
public class LuhnValidator
- extends Object
Implement the Luhn algorithm (with Luhn key on the last digit). See also
http://en.wikipedia.org/wiki/Luhn_algorithm and
http://www.merriampark.com/anatomycc.htm.
- Author:
- Hardy Ferentschik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuhnValidator
public LuhnValidator(int multiplicator)
passesLuhnTest
public boolean passesLuhnTest(String value)
Copyright © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved