Package src
Class Transaction
java.lang.Object
src.Transaction
this class holds the transaction log of all the users and also customer data needed for generating a bank statment for a user
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTransactionEntry(String entry) add an entry to the transaction logvoidsetCurrentBalance(Customer accountHolder) sets the current balance is going to be used when settint the current balance dictionary.voidsetInformation(Customer accountHolder) A setter to set all the information for the transaction.
-
Field Details
-
accountHolder
-
-
Constructor Details
-
Transaction
public Transaction()
-
-
Method Details
-
setInformation
A setter to set all the information for the transaction. Does not set the Dictionary for current balance, that will be set when generating the bank statement- Parameters:
accountHolder- a customer object that will be used to set all the attribtues besides the currentBalance and transactions
-
setCurrentBalance
sets the current balance is going to be used when settint the current balance dictionary. this is going to be used when generating the bank statment- Parameters:
accountHolder- to get the currentBalance
-
addTransactionEntry
add an entry to the transaction log- Parameters:
entry- the log that is going to be inserted into the transactions list
-