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.


Variable Index

 o available
Current available balance in the account
 o total
Current total balance in the account

Constructor Index

 o Balances()
Constructor.

Method Index

 o getAvailable()
Accessor for available balance
 o getTotal()
Accessor for total balance
 o setBalances(Money, Money)
Mutator.

Variables

 o total
 private Money total
Current total balance in the account

 o available
 private Money available
Current available balance in the account

Constructors

 o Balances
 public Balances()
Constructor. Create an object whose values will be filled in later, when returning a value to the creator.

Methods

 o setBalances
 public void setBalances(Money total,
                         Money available)
Mutator. Fill in values

Parameters:
total - the total balance in the account
available - the available balance
 o getTotal
 public Money getTotal()
Accessor for total balance

Returns:
total balance in the account
 o getAvailable
 public Money getAvailable()
Accessor for available balance

Returns:
available balance

All Packages  Class Hierarchy  This Package  Previous  Next  Index