Class BankAccount


  • public class BankAccount
    extends Object
    BankAccount
    • Constructor Detail

      • BankAccount

        public BankAccount()
    • Method Detail

      • getIban

        public String getIban()
        The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN).
        Returns:
        iban
      • setIban

        public void setIban​(String iban)
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to BankAccount
      • fromJson

        public static BankAccount fromJson​(String jsonString)
                                    throws IOException
        Create an instance of BankAccount given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of BankAccount
        Throws:
        IOException - if the JSON string is invalid with respect to BankAccount
      • toJson

        public String toJson()
        Convert an instance of BankAccount to an JSON string
        Returns:
        JSON string