Class RFCreditorReferenceCheckDigit
java.lang.Object
org.apache.commons.validator.routines.checkdigit.RFCreditorReferenceCheckDigit
- All Implemented Interfaces:
CheckDigit
Creditor Reference Check Digit calculation/validation.
RFCreditorReferenceCheckDigit is very equal to IBAN Check Digit with Prefix RF, which is not an alpha-2 country code. The only difference is that it accepts lower case letter, but handles them as upper case. Implemented as Delegation.
For further information see ISO 11649
- Since:
- 2.10.4
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionCalculates the Check Digit for a code.static CheckDigitGets the singleton instance of this class.booleanValidates the check digit for the code.
-
Field Details
-
RF
- See Also:
-
-
Method Details
-
getInstance
Gets the singleton instance of this class.- Returns:
- A singleton instance of the class.
-
calculate
Description copied from interface:CheckDigitCalculates the Check Digit for a code.- Parameters:
code- The code to calculate the Check Digit for. The string must not include the check digit- Returns:
- The calculated Check Digit
- Throws:
CheckDigitException- if an error occurs.
-
isValid
Description copied from interface:CheckDigitValidates the check digit for the code.- Parameters:
code- The code to validate, the string must include the check digit.- Returns:
trueif the check digit is valid, otherwisefalse.
-