org.base.apps.example.bank
Class Account
java.lang.Object
org.base.apps.example.bank.Account
- All Implemented Interfaces:
- Nameable, Named
public class Account
- extends Object
- implements Nameable
Represents a checking account, with a collection of line item Transactions.
- Author:
- Kevan Simpson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Account
public Account()
getName
public String getName()
- Description copied from interface:
Named
- Fetches the name of this instance.
- Specified by:
getName in interface Named
- Returns:
- the name of this instance.
- See Also:
Named.getName()
setName
public void setName(String name)
- Description copied from interface:
Nameable
- Sets the name of this instance.
- Specified by:
setName in interface Nameable
- Parameters:
name - The new name.- See Also:
Nameable.setName(java.lang.String)
getNumber
public String getNumber()
- Returns:
- the number
setNumber
public void setNumber(String number)
- Parameters:
number - the number to set
addTransaction
public void addTransaction(Transaction trax)
getTransactions
public List<Transaction> getTransactions()
- Returns:
- the transactions
removeTransaction
public void removeTransaction(Transaction trax)
setTransactions
public void setTransactions(List<Transaction> transactions)
- Parameters:
transactions - the transactions to set
Copyright 2011, Blue Agate Software Entity (BASE)