|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccountBalanceCalculator
This interface declares the methods needed to update an account balance, based on a transaction.
Method Summary | |
---|---|
AccountBalance |
findAccountBalance(Collection balanceList,
Transaction t)
Given a collection of account balance records, returns either the account balance the given transaction should post against or a new account balance record |
void |
updateAccountBalance(Transaction t,
AccountBalance ab)
Updates the given account balance record, based on the given transaction |
Method Detail |
---|
AccountBalance findAccountBalance(Collection balanceList, Transaction t)
balanceList
- a Collection of AccountBalance recordst
- the transaction to post
void updateAccountBalance(Transaction t, AccountBalance ab)
t
- the transaction to postab
- the account balance being posted against
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |