2015-09-07 11:44:36 -06:00
|
|
|
|
// enums/menu/Food.java
|
2015-11-14 16:18:05 -08:00
|
|
|
|
// <20>2016 MindView LLC: see Copyright.txt
|
2015-06-15 17:47:35 -07:00
|
|
|
|
// Subcategorization of enums within interfaces.
|
|
|
|
|
package enums.menu;
|
|
|
|
|
|
|
|
|
|
public interface Food {
|
|
|
|
|
enum Appetizer implements Food {
|
|
|
|
|
SALAD, SOUP, SPRING_ROLLS;
|
|
|
|
|
}
|
|
|
|
|
enum MainCourse implements Food {
|
|
|
|
|
LASAGNE, BURRITO, PAD_THAI,
|
|
|
|
|
LENTILS, HUMMOUS, VINDALOO;
|
|
|
|
|
}
|
|
|
|
|
enum Dessert implements Food {
|
|
|
|
|
TIRAMISU, GELATO, BLACK_FOREST_CAKE,
|
|
|
|
|
FRUIT, CREME_CARAMEL;
|
|
|
|
|
}
|
|
|
|
|
enum Coffee implements Food {
|
|
|
|
|
BLACK_COFFEE, DECAF_COFFEE, ESPRESSO,
|
|
|
|
|
LATTE, CAPPUCCINO, TEA, HERB_TEA;
|
|
|
|
|
}
|
2015-09-07 11:44:36 -06:00
|
|
|
|
}
|