-
public final class Iban
-
-
Method Summary
Modifier and Type Method Description static Stringformat(@Nullable() String ibanValue)Formats an IBAN value with spaces. static Stringmask(@Nullable() String ibanValue)Masks an IBAN value for displaying it in the user interface. static Ibanparse(@Nullable() String value)Parses an Iban. static IbanparseByAddingMissingZeros(@Nullable() String value)Parses an Iban by adding missing zeros after the last block of letters, e.g. static booleanisPartial(@Nullable() String value)Checks whether a given value is a partial Iban, i.e. static booleanstartsWithSepaCountryCode(@Nullable() 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(@Nullable() String ibanValue)
Formats an IBAN value with spaces.
- Parameters:
ibanValue- The IBAN value to format.
-
mask
@NonNull() static String mask(@Nullable() 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(@Nullable() String value)
Parses an Iban.
- Parameters:
value- The value to be parsed.
-
parseByAddingMissingZeros
@Nullable() static Iban parseByAddingMissingZeros(@Nullable() 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(@Nullable() 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(@Nullable() 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.
-
-
-
-