Index

A C E G H I Q S T 
All Classes and Interfaces|All Packages

A

add(ItemOrder) - Method in interface edu.uw.tcss.model.Cart
Adds an order to the shopping cart.
add(ItemOrder) - Method in class edu.uw.tcss.model.StoreCart
Adds an order to the cart.

C

calculateTotal() - Method in interface edu.uw.tcss.model.Cart
Calculates the total cost of all items in the shopping cart.
calculateTotal() - Method in class edu.uw.tcss.model.StoreCart
Returns the total cost of all items in the cart.
calculateTotal(int, boolean) - Method in interface edu.uw.tcss.model.Item
Calculates the total price for the given quantity of this item.
calculateTotal(int, boolean) - Method in class edu.uw.tcss.model.StoreBulkItem
Calculates the total price for the given quantity.
calculateTotal(int, boolean) - Method in class edu.uw.tcss.model.StoreItem
Calculates the total price for the given quantity.
Cart - Interface in edu.uw.tcss.model
Represents a shopping cart that holds item orders.
Cart.CartSize - Record Class in edu.uw.tcss.model
A record representing the size of a shopping cart.
CartSize(int, int) - Constructor for record class edu.uw.tcss.model.Cart.CartSize
Creates an instance of a CartSize record class.
Class Hierarchy - Section in package edu.uw.tcss.model
 
clear() - Method in interface edu.uw.tcss.model.Cart
Removes all orders from the shopping cart.
clear() - Method in class edu.uw.tcss.model.StoreCart
Removes all orders from the cart.

E

edu.uw.tcss.model - package edu.uw.tcss.model
Model classes for the UW Bookstore application.
equals(Object) - Method in record class edu.uw.tcss.model.Cart.CartSize
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.uw.tcss.model.ItemOrder
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class edu.uw.tcss.model.StoreBulkItem
Compares this StoreBulkItem to another object for equality.
equals(Object) - Method in class edu.uw.tcss.model.StoreItem
Compares this StoreItem to another object for equality.

G

getCartSize() - Method in interface edu.uw.tcss.model.Cart
Returns the current size of the shopping cart.
getCartSize() - Method in class edu.uw.tcss.model.StoreCart
Returns the current size of the shopping cart.
getFormattedDescription() - Method in interface edu.uw.tcss.model.Item
Returns a formatted description of this item suitable for display in a GUI.
getFormattedDescription() - Method in class edu.uw.tcss.model.StoreBulkItem
Returns a formatted description suitable for display.
getFormattedDescription() - Method in class edu.uw.tcss.model.StoreItem
Returns a formatted description suitable for display.
getName() - Method in interface edu.uw.tcss.model.Item
Returns the name for this Item.
getName() - Method in class edu.uw.tcss.model.StoreBulkItem
Returns the name for this Item.
getName() - Method in class edu.uw.tcss.model.StoreItem
Returns the name for this Item.
getPrice() - Method in interface edu.uw.tcss.model.Item
Returns the unit price for this Item.
getPrice() - Method in class edu.uw.tcss.model.StoreBulkItem
Returns the unit price for this Item.
getPrice() - Method in class edu.uw.tcss.model.StoreItem
Returns the unit price for this Item.

H

hashCode() - Method in record class edu.uw.tcss.model.Cart.CartSize
Returns a hash code value for this object.
hashCode() - Method in record class edu.uw.tcss.model.ItemOrder
Returns a hash code value for this object.
hashCode() - Method in class edu.uw.tcss.model.StoreBulkItem
Returns a hash code consistent with StoreBulkItem.equals(Object).
hashCode() - Method in class edu.uw.tcss.model.StoreItem
Returns a hash code consistent with StoreItem.equals(Object).

I

item() - Method in record class edu.uw.tcss.model.ItemOrder
Returns the value of the item record component.
Item - Interface in edu.uw.tcss.model
Represents a single item for sale in the bookstore.
itemCount() - Method in record class edu.uw.tcss.model.Cart.CartSize
Returns the value of the itemCount record component.
ItemOrder - Record Class in edu.uw.tcss.model
Represents a purchase order for an item - an immutable pairing of an Item with a desired quantity.
ItemOrder(Item, int) - Constructor for record class edu.uw.tcss.model.ItemOrder
Compact constructor that validates the item and quantity.
itemOrderCount() - Method in record class edu.uw.tcss.model.Cart.CartSize
Returns the value of the itemOrderCount record component.

Q

quantity() - Method in record class edu.uw.tcss.model.ItemOrder
Returns the value of the quantity record component.

S

setMembership(boolean) - Method in interface edu.uw.tcss.model.Cart
Sets whether the customer has a store membership.
setMembership(boolean) - Method in class edu.uw.tcss.model.StoreCart
Sets the customer's membership status.
StoreBulkItem - Class in edu.uw.tcss.model
Represents an item with bulk pricing available for members.
StoreBulkItem(String, BigDecimal, int, BigDecimal) - Constructor for class edu.uw.tcss.model.StoreBulkItem
Constructs a new StoreBulkItem with the given name, price, and bulk pricing.
StoreCart - Class in edu.uw.tcss.model
Implementation of a shopping cart for the bookstore.
StoreCart() - Constructor for class edu.uw.tcss.model.StoreCart
Constructs a new empty StoreCart.
StoreItem - Class in edu.uw.tcss.model
Represents a simple item with standard pricing (no bulk discounts).
StoreItem(String, BigDecimal) - Constructor for class edu.uw.tcss.model.StoreItem
Constructs a new StoreItem with the given name and price.

T

toString() - Method in record class edu.uw.tcss.model.Cart.CartSize
Returns a string representation of this record class.
toString() - Method in record class edu.uw.tcss.model.ItemOrder
Returns a string representation of this record class.
toString() - Method in class edu.uw.tcss.model.StoreBulkItem
Returns a debug representation of this item.
toString() - Method in class edu.uw.tcss.model.StoreCart
Returns a debug representation of this cart.
toString() - Method in class edu.uw.tcss.model.StoreItem
Returns a debug representation of this item.
A C E G H I Q S T 
All Classes and Interfaces|All Packages