Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.49 KB | None | 0 0
  1. package helloworldapp;
  2.  
  3. import java.util.ArrayList;
  4. import java.util.List;
  5.  
  6. public class Recipe {
  7.  
  8.     private String name;
  9.     private Category category;
  10.     private List<Ingredient> ingredients;
  11.     private String instruction;
  12.     private int numberOfServings;
  13.     private String prepartationTime;
  14.  
  15.     public Recipe() {
  16.         this.ingredients = new ArrayList<>();
  17.     }
  18.    
  19.     public String getName() {
  20.         return this.name;
  21.     }
  22.  
  23.     public void setName(String name) {
  24.         this.name = name;
  25.     }
  26.  
  27.     public Category getCategory() {
  28.         return this.category;
  29.     }
  30.  
  31.     public void setCategory(Category category) {
  32.         this.category = category;
  33.     }
  34.  
  35.     public List<Ingredient> getIngredients() {
  36.         return this.ingredients;
  37.     }
  38.  
  39.     public void addIngredient(Ingredient ingredient) {
  40.         this.ingredients.add(ingredient);
  41.     }
  42.  
  43.     public String getInstruction() {
  44.         return this.instruction;
  45.     }
  46.  
  47.     public void setInstruction(String instruction) {
  48.         this.instruction = instruction;
  49.     }
  50.  
  51.     public int getNumberOfServings() {
  52.         return this.numberOfServings;
  53.     }
  54.  
  55.     public void setNumberOfServings(int numberOfServings) {
  56.         this.numberOfServings = numberOfServings;
  57.     }
  58.  
  59.     public String getPrepartationTime() {
  60.         return this.prepartationTime;
  61.     }
  62.  
  63.     public void setPrepartationTime(String prepartationTime) {
  64.         this.prepartationTime = prepartationTime;
  65.     }
  66.  
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement