    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
  Current available balance in the account
total
  Current total balance in the account

##

Balances()
  Constructor.

##

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

##

total

     private Money total

  Current total balance in the account

available

     private Money available

  Current available balance in the account

##

Balances

     public Balances()

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

##

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

     public Money getTotal()

  Accessor for total balance

  Returns:
    total balance in the account

getAvailable

     public Money getAvailable()

  Accessor for available balance

  Returns:
    available balance

    All Packages  Class Hierarchy  This Package  Previous  Next  Index