|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.samples.plantsbywebsphereejb.ShoppingCartContents
public class ShoppingCartContents
A class to hold a shopping cart's contents.
Constructor Summary | |
---|---|
ShoppingCartContents()
|
Method Summary | |
---|---|
void |
addItem(ShoppingCartItem si)
Add the item to the shopping cart. |
java.lang.String |
getInventoryID(int index)
Return the inventory ID at the index given. |
int |
getQuantity(java.lang.String inventoryID)
Return the quantity for the inventory ID given. |
void |
removeItem(ShoppingCartItem si)
Remove the item from the shopping cart. |
int |
size()
Return the number of items in the cart. |
void |
updateItem(ShoppingCartItem si)
Update the item in the shopping cart. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShoppingCartContents()
Method Detail |
---|
public void addItem(ShoppingCartItem si)
public void updateItem(ShoppingCartItem si)
public void removeItem(ShoppingCartItem si)
public int size()
public java.lang.String getInventoryID(int index)
public int getQuantity(java.lang.String inventoryID)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |