All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class banking.Balances
java.lang.Object
   |
   +----banking.Balances
  -  public class Balances
  -  extends Object
Representation for customer's current account balances as returned by the 
  bank.  An empty object of this class is created and sent along with the
  transaction message; the bank fills it in with values.
   
  -   available available
-  Current available balance in the account
  
-   total total
-  Current total balance in the account 
   
  -   Balances() Balances()
-  Constructor.
   
  -   getAvailable() getAvailable()
-  Accessor for available balance
  
  
-   getTotal() getTotal()
-  Accessor for total balance
  
  
-   setBalances(Money, Money) setBalances(Money, Money)
-  Mutator.
   
 total
total
 private Money total
  -  Current total balance in the account
 
 available
available
 private Money available
  -  Current available balance in the account
 
   
 Balances
Balances
 public Balances()
  -  Constructor.  Create an object whose values will be filled in later, when
  returning a value to the creator.
 
   
 setBalances
setBalances
 public void setBalances(Money total,
                         Money available)
  -  Mutator.  Fill in values
   
- 
    -  Parameters:
    
-  total - the total balance in the account
    -  available - the available balance
  
 
 getTotal
getTotal
 public Money getTotal()
  -  Accessor for total balance
   
- 
    -  Returns:
    
-  total balance in the account
  
 
 getAvailable
getAvailable
 public Money getAvailable()
  -  Accessor for available balance
   
- 
    -  Returns:
    
-  available balance
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index