Methods Summary |
---|
public void | addItem(Item item)
this.cart.put(item.getID(), item);
|
public void | clear()
this.cart.clear();
|
public java.util.Iterator | getAllItems()
return this.cart.values().iterator();
|
public Item | getItem(java.lang.String id)
return (Item) this.cart.get(id);
|
public void | removeItem(java.lang.String itemID)
this.cart.remove(itemID);
|