|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BalanceCalculator
This interface declares methods needed for posting transactions to the appropriate balance records.
Method Summary | |
---|---|
Balance |
findBalance(Collection balanceList,
Transaction t)
Given a collection of balance records, returns the balance that the given transaction would post to or creates a new balance record |
void |
updateBalance(Transaction t,
Balance b)
Updates the balance based on the given transaction |
Method Detail |
---|
Balance findBalance(Collection balanceList, Transaction t)
balanceList
- a Collection of balance recordst
- the transaction to post
void updateBalance(Transaction t, Balance b)
t
- the transaction to postb
- the balance being posted against
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |