it.amattioli.encapsulate.money
Class SimpleAccount
java.lang.Object
it.amattioli.encapsulate.money.SimpleAccount
- All Implemented Interfaces:
- Account
public class SimpleAccount
- extends Object
- implements Account
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleAccount
public SimpleAccount(Currency currency)
addEntry
public void addEntry(AccountEntry entry)
throws IncompatibleCurrency
- Specified by:
addEntry in interface Account
- Throws:
IncompatibleCurrency
getEntries
public List<AccountEntry> getEntries()
- Specified by:
getEntries in interface Account
getEntriesIterator
public Iterator<AccountEntry> getEntriesIterator()
getEntriesIterator
public Iterator getEntriesIterator(TemporalExpression expr)
getCurrency
public Currency getCurrency()
- Specified by:
getCurrency in interface Account
getBalance
public Money getBalance()
- Specified by:
getBalance in interface Account
Copyright © 2011. All Rights Reserved.