public class Waitress extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) Menu |
cafeMenu |
(package private) Menu |
dinerMenu |
(package private) Menu |
pancakeHouseMenu |
Constructor and Description |
---|
Waitress(Menu pancakeHouseMenu,
Menu dinerMenu,
Menu cafeMenu) |
Modifier and Type | Method and Description |
---|---|
boolean |
isItemVegetarian(java.lang.String name) |
private boolean |
isVegetarian(java.lang.String name,
java.util.Iterator iterator) |
void |
printMenu() |
private void |
printMenu(java.util.Iterator iterator) |
void |
printVegetarianMenu() |
private void |
printVegetarianMenu(java.util.Iterator iterator) |
public void printMenu()
private void printMenu(java.util.Iterator iterator)
public void printVegetarianMenu()
public boolean isItemVegetarian(java.lang.String name)
private void printVegetarianMenu(java.util.Iterator iterator)
private boolean isVegetarian(java.lang.String name, java.util.Iterator iterator)