public class CheckSumDigit
extends java.lang.Object
Constructor and Description |
---|
CheckSumDigit() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
calculateCheckDigit(java.lang.String number)
Calculates the last digits for the number received as parameter
|
java.lang.Integer |
getCheckSumDigit(java.lang.String number)
Generates the check digit required to make the given number
valid (i.e.
|
public java.lang.Integer getCheckSumDigit(java.lang.String number)
number
- The number for which to generate the check digit.public java.lang.Integer calculateCheckDigit(java.lang.String number)
number
- - the number to calculate the check digits for