I wonder if we should have packages for various country codes like o.a.c.validator.de ? Then this class would go in there.
Gary On Thu, May 5, 2016 at 12:46 PM, Benedikt Ritter <brit...@apache.org> wrote: > Benedikt Ritter <brit...@apache.org> schrieb am Di., 3. Mai 2016 um > 22:49 Uhr: > > > Hello, > > > > I have the need for a validator implementation that can check German > > identity card numbers. It's pretty simple to implement something like > this > > using ModulusCheckDigit. Now I'm wondering whether this would be a good > > addition for [validator]. It is specific to German identity cards, but > > maybe we could start an idcard package which contains routine for > different > > country identity cards. > > > > If this doesn't belong into [validator] I'll probably publish it via my > > github account :-) > > > > A CheckDigit implementation for German identity card numbers would look > like this: > https://gist.github.com/britter/ff959c42cab142a828247ce0673f6215 > > > > > > Best regards, > > Benedikt > > > > > -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org Java Persistence with Hibernate, Second Edition <http://www.manning.com/bauer3/> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> Spring Batch in Action <http://www.manning.com/templier/> Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory