-
Notifications
You must be signed in to change notification settings - Fork 65
Backend Alpha Version #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| private double accountBalance = 0.00d; | ||
| private List<User> accountUsers = new ArrayList<User>(); | ||
| private AccountStatus accountStatus = AccountStatus.ACTIVE; | ||
| private List<Transaction> accountTransactionHistory = new ArrayList<Transaction>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice declaration of the abstract type List and instantiation of concrete type ArrayList! 👍
| } | ||
|
|
||
| public void setAccountID(int accountID) { | ||
| this.accountID = String.format( "%0" + AccountFactory.ACCOUNT_ID_LENGTH + "d", accountID); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 me gusta
| this.getTransactionHistory().add(transaction); | ||
| } | ||
|
|
||
| public Transaction withdrawAndMakeTransaction(double amount) throws TransactionAmountIsZeroException, BalanceTooLowException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice use of throws
| package com.zipcode.macrolabs.atm.navigation; | ||
|
|
||
| public class BankAccountManager { | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// TODO - Remove this class
Looking for feedback