-
public final class Iban
-
-
Field Summary
Fields Modifier and Type Field Description final static intIBAN_BLOCK_SIZE
-
Method Summary
Modifier and Type Method Description static Stringformat(String ibanValue)Formats an IBAN value with spaces. static Stringmask(String ibanValue)Masks an IBAN value for displaying it in the user interface. static Ibanparse(String value)Parses an Iban. static IbanparseByAddingMissingZeros(String value)Parses an Iban by adding missing zeros after the last block of letters, e.g. static booleanisPartial(String value)Checks whether a given value is a partial Iban, i.e. static booleanstartsWithSepaCountryCode(String value)Checks whether a given value starts with a SEPA country code. static intgetFormattedMaxLength()StringgetValue()StringgetCountryCode()StringgetCheckDigits()StringgetBban()booleanisSepa()Check if the this IBAN is from a SEPA country. -
-
Method Detail
-
format
@NonNull() static String format(String ibanValue)
Formats an IBAN value with spaces.
- Parameters:
ibanValue- The IBAN value to format.
-
mask
@NonNull() static String mask(String ibanValue)
Masks an IBAN value for displaying it in the user interface.
- Parameters:
ibanValue- The IBAN value to mask.
-
parse
@Nullable() static Iban parse(String value)
Parses an Iban.
- Parameters:
value- The value to be parsed.
-
parseByAddingMissingZeros
@Nullable() static Iban parseByAddingMissingZeros(String value)
Parses an Iban by adding missing zeros after the last block of letters, e.g. NL13 TEST 1234 5678 9 becomes NL13 TEST 0123 4567 89.
- Parameters:
value- The value to be parsed.
-
isPartial
static boolean isPartial(String value)
Checks whether a given value is a partial Iban, i.e. whether it is a prefix of a valid IBAN.
- Parameters:
value- The value to check.
-
startsWithSepaCountryCode
static boolean startsWithSepaCountryCode(String value)
Checks whether a given value starts with a SEPA country code.
- Parameters:
value- The value to check.
-
getFormattedMaxLength
static int getFormattedMaxLength()
-
getCountryCode
@NonNull() String getCountryCode()
-
getCheckDigits
@NonNull() String getCheckDigits()
-
isSepa
boolean isSepa()
Check if the this IBAN is from a SEPA country.
-
-
-
-