Hellboyandso

domain_PizzaEnum.java

Dec 12th, 2016
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. package domain;
  2.  
  3. public enum PizzaEnum {
  4.  
  5.     checkMenu("checkMenu"),
  6.     getPizzas("getPizzas"),
  7.     pizzaIngredients("pizzaIngredients"),
  8.     cheaperPizzas("cheaperPizzas"),
  9.     vegetarian("vegetarian"),
  10.     createOrder("createOrder"),
  11.     addPizza("addPizza"),
  12.     price("price"),
  13.     submitOrder("submitOrder"),
  14.     orderState("orderState"),
  15.     cancelOrder("cancelOrder");
  16.    
  17.     private String choice;
  18.    
  19.     public String getChoice(){
  20.         return choice;
  21.     }
  22.    
  23.     PizzaEnum(String choice){
  24.         this.choice = choice;
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment