Esempio n. 1
0
 public Recipe(
     String title,
     String type,
     TreeMap<String, String> ingredients,
     String preparation,
     String comments,
     String cookingTime) {
   this.title = title;
   this.type = RecipeTypes.valueOf(type);
   this.preparation = preparation;
   this.comments = comments;
   this.cookingTime = cookingTime;
   this.ingredients = ingredients;
 }
Esempio n. 2
0
 public String getType() {
   return type.toString();
 }
Esempio n. 3
0
 public void setType(String s) {
   this.type = RecipeTypes.valueOf(s);
 }