Modifier and Type | Field and Description |
---|---|
(package private) static int |
MAX_ITEMS |
(package private) MenuItem[] |
menuItems |
(package private) int |
numberOfItems |
Constructor and Description |
---|
DinerMenu() |
Modifier and Type | Method and Description |
---|---|
void |
addItem(java.lang.String name,
java.lang.String description,
boolean vegetarian,
double price) |
java.util.Iterator |
createIterator() |
MenuItem[] |
getMenuItems() |
static final int MAX_ITEMS
int numberOfItems
public DinerMenu()
public void addItem(java.lang.String name, java.lang.String description, boolean vegetarian, double price)
public MenuItem[] getMenuItems()
public java.util.Iterator createIterator()
createIterator
in interface Menu