ch7.catalogAddress
Class ShoppingCart<Item>

java.lang.Object
  extended by ch7.catalogAddress.ShoppingCart<Item>

public class ShoppingCart<Item>
extends java.lang.Object


Constructor Summary
ShoppingCart()
          Creates a new instance of ShoppingCart
 
Method Summary
 void addItem(Item item)
           
 void addTotal(double amount)
           
 int getCount()
           
 java.util.List<Item> getItems()
           
 double getTotal()
           
 java.lang.String getTotalAsCurrency()
           
 void incrCount()
           
 void resetItems()
           
 void setCount(int count)
           
 void setItems(java.util.List<Item> items)
           
 void setTotal(double total)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingCart

public ShoppingCart()
Creates a new instance of ShoppingCart

Method Detail

resetItems

public void resetItems()

setItems

public void setItems(java.util.List<Item> items)

getItems

public java.util.List<Item> getItems()

addItem

public void addItem(Item item)

setTotal

public void setTotal(double total)

getTotal

public double getTotal()

setCount

public void setCount(int count)

getCount

public int getCount()

addTotal

public void addTotal(double amount)

getTotalAsCurrency

public java.lang.String getTotalAsCurrency()

incrCount

public void incrCount()