com.carlosbcruz.account.modeltotals
Class AccountCalculations
java.lang.Object
com.carlosbcruz.account.modeltotals.AccountCalculations
public class AccountCalculations
- extends java.lang.Object
Helps in calculate the totals of both current com.carlosbcruz.account.control and savings com.carlosbcruz.account.control
- Author:
- Carlos Fernando Bella Cruz - pessoal@carlosbcruz.com
Method Summary |
static AccountTransactionTotal[] |
getAccountTotals(java.lang.String accountId)
Calculate all the totals corresponding to each transactions of an com.carlosbcruz.account.control |
static AccountTransactionTotal[] |
getAccountTotals(java.lang.String accountId,
int year)
Calculate all the totals corresponding to each transactions of an com.carlosbcruz.account.control
to a specif year |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccountCalculations
public AccountCalculations()
getAccountTotals
public static AccountTransactionTotal[] getAccountTotals(java.lang.String accountId)
- Calculate all the totals corresponding to each transactions of an com.carlosbcruz.account.control
- Parameters:
accountId
- Account Identification
- Returns:
- AccountTransactionTotal[] The total corresponding to each transaction
getAccountTotals
public static AccountTransactionTotal[] getAccountTotals(java.lang.String accountId,
int year)
- Calculate all the totals corresponding to each transactions of an com.carlosbcruz.account.control
to a specif year
- Parameters:
accountId
- Account Identificationyear
- Specifc Year
- Returns:
- AccountTransactionTotal[] The total corresponding to each transaction