|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Catalog
A Catalog models the collection of Items that an EStore might carry.
EStore
Constructor Summary | |
Catalog()
Construct a Catalog object. |
Method Summary | |
void |
addItem(Item item)
Add an Item to this Catalog. |
Item |
getItem(String itemName)
Get an Item from this Catalog. |
void |
show(Terminal t)
Display the contents of this Catalog. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Catalog()
Method Detail |
public void addItem(Item item)
item
- the Item to add.public Item getItem(String itemName)
itemName
- the name of the wanted Item
public void show(Terminal t)
t
- the Terminal to print to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |