jgnash.engine
Class EquityAccountProxy
java.lang.Object
jgnash.engine.AccountProxy
jgnash.engine.EquityAccountProxy
public class EquityAccountProxy
- extends AccountProxy
Equity Account Proxy class
- Version:
- $Id$
- Author:
- Craig Cavanaugh
|
Method Summary |
java.math.BigDecimal |
getBalance(java.util.Date date)
Returns the account balance up to and inclusive of the supplied date |
java.math.BigDecimal |
getBalance(java.util.Date start,
java.util.Date end)
Returns the balance of the transactions inclusive of the start and end dates. |
java.math.BigDecimal |
getBalanceAt(int index)
Get the account balance up to a specified index. |
java.math.BigDecimal |
getReconciledBalance()
Calculates the reconciled balance of the account |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EquityAccountProxy
public EquityAccountProxy(Account account)
getBalanceAt
public java.math.BigDecimal getBalanceAt(int index)
- Description copied from class:
AccountProxy
- Get the account balance up to a specified index.
- Overrides:
getBalanceAt in class AccountProxy
- Parameters:
index - the balance of this account at the specified index.
- Returns:
- the balance of this account at the specified index.
getReconciledBalance
public java.math.BigDecimal getReconciledBalance()
- Description copied from class:
AccountProxy
- Calculates the reconciled balance of the account
- Overrides:
getReconciledBalance in class AccountProxy
- Returns:
- the reconciled balance of this account
getBalance
public java.math.BigDecimal getBalance(java.util.Date date)
- Description copied from class:
AccountProxy
- Returns the account balance up to and inclusive of the supplied date
- Overrides:
getBalance in class AccountProxy
- Parameters:
date - The inclusive ending date
- Returns:
- The ending balance
getBalance
public java.math.BigDecimal getBalance(java.util.Date start,
java.util.Date end)
- Description copied from class:
AccountProxy
- Returns the balance of the transactions inclusive of the start and end dates.
- Overrides:
getBalance in class AccountProxy
- Parameters:
start - The inclusive start dateend - The inclusive end date
- Returns:
- The ending balance