Constructor and Description |
---|
MOD112() |
Modifier and Type | Method and Description |
---|---|
int |
compute(java.lang.String digits)
Computes the check digit value.
|
java.lang.String |
encode(java.lang.String digits)
Add check digits to a string containing digits.
|
int |
getDigit(java.lang.String digits)
Extract just the check digit from an encoded string.
|
java.lang.String |
getNumber(java.lang.String digits)
Extracts the raw data without the check digits.
|
boolean |
verify(java.lang.String digits)
Verify a string that has been encoded with a check digit.
|
public java.lang.String encode(java.lang.String digits)
Digit
Add check digits to a string containing digits.
public boolean verify(java.lang.String digits)
Digit
Verify a string that has been encoded with a check digit.
public int compute(java.lang.String digits)
Digit
Computes the check digit value.
public int getDigit(java.lang.String digits)
Digit
Extract just the check digit from an encoded string.