Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
F
G
I
M
N
P
R
T
U
A
addItem(UPC)
- Method in class
Inventory
Add an item to the inventory
B
Book
- class
Book
.
This class implements a simple book description.
Book(String, String, String[], long)
- Constructor for class
Book
Construct a new Book using the parameters provided.
Book(String, String, String, long)
- Constructor for class
Book
Construct a new Book using the parameters provided.
C
countItems(long)
- Method in class
Inventory
Count the number of items with a particular UPC that are in stock.
F
findItemByUPC(long)
- Method in class
Inventory
Find the first occurrence of a particular UPC coded item and return the index.
G
getAuthors()
- Method in class
Book
Return the array of author names for this book.
getISBN()
- Method in class
Book
Return the ISBN of the book.
getTitle()
- Method in class
Book
Return the title of the book.
getUPC()
- Method in class
Book
Any class that implements the UPC interface must be able to say what its UPC code is.
getUPC()
- Method in class
Notebook
Any class that implements the UPC interface must be able to say what its UPC code is.
getUPC()
- Method in interface
UPC
Any class that implements the UPC interface must be able to say what its UPC code is.
I
Inventory
- class
Inventory
.
This class maintains an inventory of UPC-coded items.
Inventory()
- Constructor for class
Inventory
Initialize a new Inventory manager.
M
main(String[])
- Static method in class
Manager
The main method creates the products, adds them to inventory, then fiddles around.
Manager
- class
Manager
.
This class runs a small bookstore that carries Books and Notebooks.
Manager()
- Constructor for class
Manager
N
Notebook
- class
Notebook
.
This class implements a simple product description for a notebook
Notebook(long)
- Constructor for class
Notebook
Construct a new NoteBook using the parameter provided.
P
printInventory()
- Method in class
Inventory
Print all the items in inventory
R
removeItem(long)
- Method in class
Inventory
Remove an item from the inventory
T
toString()
- Method in class
Book
return a String describing this Book
toString()
- Method in class
Notebook
return a String describing this Notebook
U
UPC
- interface
UPC
.
This interface defines the methods that a UPC-identified object must have.
A
B
C
F
G
I
M
N
P
R
T
U
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes