Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package helloworldapp;
- import java.util.ArrayList;
- import java.util.List;
- public class Recipe {
- private String name;
- private Category category;
- private List<Ingredient> ingredients;
- private String instruction;
- private int numberOfServings;
- private String prepartationTime;
- public Recipe() {
- this.ingredients = new ArrayList<>();
- }
- public String getName() {
- return this.name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public Category getCategory() {
- return this.category;
- }
- public void setCategory(Category category) {
- this.category = category;
- }
- public List<Ingredient> getIngredients() {
- return this.ingredients;
- }
- public void addIngredient(Ingredient ingredient) {
- this.ingredients.add(ingredient);
- }
- public String getInstruction() {
- return this.instruction;
- }
- public void setInstruction(String instruction) {
- this.instruction = instruction;
- }
- public int getNumberOfServings() {
- return this.numberOfServings;
- }
- public void setNumberOfServings(int numberOfServings) {
- this.numberOfServings = numberOfServings;
- }
- public String getPrepartationTime() {
- return this.prepartationTime;
- }
- public void setPrepartationTime(String prepartationTime) {
- this.prepartationTime = prepartationTime;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement