Class BankAccount


  • public class BankAccount
    extends Object
    BankAccount
    • Constructor Detail

      • BankAccount

        public BankAccount()
    • Method Detail

      • statementText

        public BankAccount statementText​(String statementText)
        The text that will appear on your employee's bank statement when they receive payment
        Parameters:
        statementText - String
        Returns:
        BankAccount
      • getStatementText

        public String getStatementText()
        The text that will appear on your employee's bank statement when they receive payment
        Returns:
        statementText
      • setStatementText

        public void setStatementText​(String statementText)
        The text that will appear on your employee's bank statement when they receive payment
        Parameters:
        statementText - String
      • accountName

        public BankAccount accountName​(String accountName)
        The name of the account
        Parameters:
        accountName - String
        Returns:
        BankAccount
      • getAccountName

        public String getAccountName()
        The name of the account
        Returns:
        accountName
      • setAccountName

        public void setAccountName​(String accountName)
        The name of the account
        Parameters:
        accountName - String
      • BSB

        public BankAccount BSB​(String BSB)
        The BSB number of the account
        Parameters:
        BSB - String
        Returns:
        BankAccount
      • getBSB

        public String getBSB()
        The BSB number of the account
        Returns:
        BSB
      • setBSB

        public void setBSB​(String BSB)
        The BSB number of the account
        Parameters:
        BSB - String
      • accountNumber

        public BankAccount accountNumber​(String accountNumber)
        The account number
        Parameters:
        accountNumber - String
        Returns:
        BankAccount
      • getAccountNumber

        public String getAccountNumber()
        The account number
        Returns:
        accountNumber
      • setAccountNumber

        public void setAccountNumber​(String accountNumber)
        The account number
        Parameters:
        accountNumber - String
      • remainder

        public BankAccount remainder​(Boolean remainder)
        If this account is the Remaining bank account
        Parameters:
        remainder - Boolean
        Returns:
        BankAccount
      • getRemainder

        public Boolean getRemainder()
        If this account is the Remaining bank account
        Returns:
        remainder
      • setRemainder

        public void setRemainder​(Boolean remainder)
        If this account is the Remaining bank account
        Parameters:
        remainder - Boolean
      • amount

        public BankAccount amount​(Double amount)
        Fixed amounts (for example, if an employee wants to have $100 of their salary transferred to one account, and the remaining amount to another)
        Parameters:
        amount - Double
        Returns:
        BankAccount
      • getAmount

        public Double getAmount()
        Fixed amounts (for example, if an employee wants to have $100 of their salary transferred to one account, and the remaining amount to another)
        Returns:
        amount
      • setAmount

        public void setAmount​(Double amount)
        Fixed amounts (for example, if an employee wants to have $100 of their salary transferred to one account, and the remaining amount to another)
        Parameters:
        amount - Double
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object