public class CartBean extends Object implements Serializable
| Constructor and Description |
|---|
CartBean()
Creates a CartBean.
|
CartBean(int productId,
int count)
Creates a CartBean with the specified item and count.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount() |
ProductBean |
getItem()
Added as a convenience method, so that the bean examples are a bit better.
|
int |
getProductId() |
int |
getSubTotal()
Added as a convenience method.
|
void |
setCount(int count) |
void |
setProductId(int productId) |
public CartBean()
public CartBean(int productId,
int count)
productId - the item id.count - the number of items.public int getCount()
public void setCount(int count)
count - The count to set.public int getProductId()
public void setProductId(int productId)
productId - The productId to set.public ProductBean getItem()
public int getSubTotal()
Copyright © 2016. All rights reserved.