Package org.iban4j

Class Bic

java.lang.Object
org.iban4j.Bic

public final class Bic extends Object
Business Identifier Codes (also known as SWIFT-BIC, BIC code, SWIFT ID or SWIFT code). ISO_9362.
  • Method Details

    • valueOf

      public static Bic valueOf(String bic) throws BicFormatException, UnsupportedCountryException
      Returns a Bic object holding the value of the specified String.
      Parameters:
      bic - the String to be parsed.
      Returns:
      a Bic object holding the value represented by the string argument.
      Throws:
      BicFormatException - if the String doesn't contain parsable Bic. UnsupportedCountryException if bic's country is not supported.
      UnsupportedCountryException
    • getBankCode

      public String getBankCode()
      Returns the bank code from the Bic.
      Returns:
      string representation of Bic's institution code.
    • getCountryCode

      public CountryCode getCountryCode()
      Returns the country code from the Bic.
      Returns:
      CountryCode representation of Bic's country code.
    • getLocationCode

      public String getLocationCode()
      Returns the location code from the Bic.
      Returns:
      string representation of Bic's location code.
    • getBranchCode

      public String getBranchCode()
      Returns the branch code from the Bic.
      Returns:
      string representation of Bic's branch code, null if Bic has no branch code.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object