| |
|
| java.lang.Object olstore.client.Item olstore.client.OrderItem
OrderItem | public class OrderItem extends Item (Code) | | Represents an order for an item.
|
Constructor Summary | |
public | OrderItem(Item item) Create a new order for a given item. |
Method Summary | |
public boolean | equals(Object other) | public int | getQuantity() Get the quantity being ordered. | public double | getTotal() Get the total for this order. | public void | setQuantity(int quantity) Set the quantity for this item. |
OrderItem | public OrderItem(Item item)(Code) | | Create a new order for a given item.
Parameters: item - the item being ordered |
getQuantity | public int getQuantity()(Code) | | Get the quantity being ordered.
Returns the quantity. |
getTotal | public double getTotal()(Code) | | Get the total for this order.
the total price for this order |
setQuantity | public void setQuantity(int quantity)(Code) | | Set the quantity for this item.
Parameters: quantity - The quantity to set. |
|
|
|