Package com.s24.gs1
Class GtinValidator
- java.lang.Object
-
- com.s24.gs1.GtinValidator
-
public class GtinValidator extends Object
Checks, whether a GTIN is valid or not.A GTIN string is valid, if it
- Is not empty or null
- It does not contain any non-digits
- Has a valid length
- Has a valid checksum
- Has a valid check digit at the end
-
-
Constructor Summary
Constructors Constructor Description GtinValidator(CharSequence gtin)
-
-
-
Constructor Detail
-
GtinValidator
public GtinValidator(CharSequence gtin)
-
-