Constructor and Description |
---|
MOD9710() |
Modifier and Type | Method and Description |
---|---|
int |
compute(String digits)
Computes the check digit value
|
String |
encode(String digits)
Add check digits to a string containing digits
|
int |
getDigit(String digits)
Extract just the check digit from an encoded string
|
String |
getNumber(String digits)
Extracts the raw data without the check digits
|
boolean |
verify(String digits)
Verify a string that has been encoded with a check digit
|
public MOD9710()
public String encode(String digits)
Digit
public boolean verify(String digits)
Digit
public int compute(String digits)
Digit
public int getDigit(String digits)
Digit
Copyright © 2013–2014. All rights reserved.