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