Package org.iban4j

Class Iban

java.lang.Object
org.iban4j.Iban

public final class Iban extends Object
International Bank Account Number ISO_13616.
  • Method Details

    • getCountryCode

      public CountryCode getCountryCode()
      Returns iban's country code.
      Returns:
      countryCode CountryCode
    • getCheckDigit

      public String getCheckDigit()
      Returns iban's check digit.
      Returns:
      checkDigit String
    • getAccountNumber

      public String getAccountNumber()
      Returns iban's account number.
      Returns:
      accountNumber String
    • getBankCode

      public String getBankCode()
      Returns iban's bank code.
      Returns:
      bankCode String
    • getBranchCode

      public String getBranchCode()
      Returns iban's branch code.
      Returns:
      branchCode String
    • getNationalCheckDigit

      public String getNationalCheckDigit()
      Returns iban's national check digit.
      Returns:
      nationalCheckDigit String
    • getAccountType

      public String getAccountType()
      Returns iban's account type.
      Returns:
      accountType String
    • getOwnerAccountType

      public String getOwnerAccountType()
      Returns iban's owner account type.
      Returns:
      ownerAccountType String
    • getIdentificationNumber

      public String getIdentificationNumber()
      Returns iban's identification number.
      Returns:
      identificationNumber String
    • getBban

      public String getBban()
      Returns iban's bban (Basic Bank Account Number).
      Returns:
      bban String
    • valueOf

      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.
      InvalidCheckDigitException
      UnsupportedCountryException
    • valueOf

      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.
      InvalidCheckDigitException
      UnsupportedCountryException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toFormattedString

      public String toFormattedString()
      Returns formatted version of Iban.
      Returns:
      A string representing formatted Iban for printing.
    • random

      public static Iban random()
    • random

      public static Iban random(Random random)
    • random

      public static Iban random(CountryCode cc)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object