it.amattioli.encapsulate.money
Class SimpleAccount

Show UML class diagram
java.lang.Object
  extended by it.amattioli.encapsulate.money.SimpleAccount
All Implemented Interfaces:
Account

public class SimpleAccount
extends Object
implements Account


Constructor Summary
SimpleAccount(Currency currency)
           
 
Method Summary
 void addEntry(AccountEntry entry)
           
 Money getBalance()
           
 Currency getCurrency()
           
 List<AccountEntry> getEntries()
           
 Iterator<AccountEntry> getEntriesIterator()
           
 Iterator getEntriesIterator(TemporalExpression expr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAccount

public SimpleAccount(Currency currency)
Method Detail

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.