Package org.iban4j
Class Iban
java.lang.Object
org.iban4j.Iban
International Bank Account Number
ISO_13616.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns iban's account number.Returns iban's account type.Returns iban's bank code.getBban()Returns iban's bban (Basic Bank Account Number).Returns iban's branch code.Returns iban's check digit.Returns iban's country code.Returns iban's identification number.Returns iban's national check digit.Returns iban's owner account type.inthashCode()static Ibanrandom()static Ibanstatic Ibanrandom(CountryCode cc) Returns formatted version of Iban.toString()static IbanReturns an Iban object holding the value of the specified String.static IbanvalueOf(String iban, IbanFormat format) Returns an Iban object holding the value of the specified String.
-
Method Details
-
getCountryCode
Returns iban's country code.- Returns:
- countryCode CountryCode
-
getCheckDigit
Returns iban's check digit.- Returns:
- checkDigit String
-
getAccountNumber
Returns iban's account number.- Returns:
- accountNumber String
-
getBankCode
Returns iban's bank code.- Returns:
- bankCode String
-
getBranchCode
Returns iban's branch code.- Returns:
- branchCode String
-
getNationalCheckDigit
Returns iban's national check digit.- Returns:
- nationalCheckDigit String
-
getAccountType
Returns iban's account type.- Returns:
- accountType String
-
getOwnerAccountType
Returns iban's owner account type.- Returns:
- ownerAccountType String
-
getIdentificationNumber
Returns iban's identification number.- Returns:
- identificationNumber String
-
getBban
Returns iban's bban (Basic Bank Account Number).- Returns:
- bban String
-
valueOf
public static Iban valueOf(String iban) throws IbanFormatException, InvalidCheckDigitException, UnsupportedCountryException Returns an Iban object holding the value of the specified String.- Parameters:
iban- the String to be parsed.- Returns:
- an Iban object holding the value represented by the string argument.
- Throws:
IbanFormatException- if the String doesn't contain parsable Iban InvalidCheckDigitException if Iban has invalid check digit UnsupportedCountryException if Iban's Country is not supported.InvalidCheckDigitExceptionUnsupportedCountryException
-
valueOf
public static Iban valueOf(String iban, IbanFormat format) throws IbanFormatException, InvalidCheckDigitException, UnsupportedCountryException Returns an Iban object holding the value of the specified String.- Parameters:
iban- the String to be parsed.format- the format of the Iban.- Returns:
- an Iban object holding the value represented by the string argument.
- Throws:
IbanFormatException- if the String doesn't contain parsable Iban InvalidCheckDigitException if Iban has invalid check digit UnsupportedCountryException if Iban's Country is not supported.InvalidCheckDigitExceptionUnsupportedCountryException
-
toString
-
toFormattedString
Returns formatted version of Iban.- Returns:
- A string representing formatted Iban for printing.
-
random
-
random
-
random
-
equals
-
hashCode
public int hashCode()
-