com.carlosbcruz.account.modeltotals
Class AccountCalculations

java.lang.Object
  extended by 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

Constructor Summary
AccountCalculations()
           
 
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
 

Constructor Detail

AccountCalculations

public AccountCalculations()
Method Detail

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 Identification
year - Specifc Year
Returns:
AccountTransactionTotal[] The total corresponding to each transaction