Kommentare angepasst
This commit is contained in:
parent
922345077b
commit
6d690410ec
@ -6,7 +6,7 @@ import java.util.List;
|
|||||||
* @author: Madeleine Vigier
|
* @author: Madeleine Vigier
|
||||||
* @version: 1.0
|
* @version: 1.0
|
||||||
*/
|
*/
|
||||||
public class Menue{
|
public class Menue {
|
||||||
String date;
|
String date;
|
||||||
String dish;
|
String dish;
|
||||||
String sideDish;
|
String sideDish;
|
||||||
@ -16,11 +16,12 @@ public class Menue{
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* constructor
|
* constructor
|
||||||
* @param date date of meal
|
*
|
||||||
* @param dish meal
|
* @param date date of meal
|
||||||
* @param sideDish side dish
|
* @param dish meal
|
||||||
* @param typ vegan, vegetarian or meat
|
* @param sideDish side dish
|
||||||
* @param ingredients list of ingredients
|
* @param typ vegan, vegetarian or meat
|
||||||
|
* @param ingredients list of ingredients
|
||||||
*/
|
*/
|
||||||
public Menue(String date, String dish, String sideDish, String typ, List<String> ingredients) {
|
public Menue(String date, String dish, String sideDish, String typ, List<String> ingredients) {
|
||||||
this.date = date;
|
this.date = date;
|
||||||
@ -30,19 +31,24 @@ public class Menue{
|
|||||||
this.ingredients = ingredients;
|
this.ingredients = ingredients;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The method get Date() gets the date
|
||||||
|
*
|
||||||
|
* @return date
|
||||||
|
* @author Madeleine Vigier
|
||||||
|
* @version 1.0
|
||||||
|
*/
|
||||||
public String getDate() {
|
public String getDate() {
|
||||||
return date;
|
return date;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDish() {
|
/**
|
||||||
return dish;
|
* The method getTyp() gets the typ of the meal
|
||||||
}
|
*
|
||||||
|
* @return typ e.g. Vegan
|
||||||
public String getSideDish() {
|
* @author Madeleine Vigier
|
||||||
return sideDish;
|
* @version 1.0
|
||||||
}
|
*/
|
||||||
|
|
||||||
public String getTyp() {
|
public String getTyp() {
|
||||||
if (typ.contains("DessertV") || typ.contains("Dessert")) {
|
if (typ.contains("DessertV") || typ.contains("Dessert")) {
|
||||||
return "";
|
return "";
|
||||||
@ -53,11 +59,17 @@ public class Menue{
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The method toString() returns a String representation of an object
|
||||||
|
*
|
||||||
|
* @return a String with dish, sideDish, list of ingredients and the typ of the menue
|
||||||
|
* @author Madeleine Vigier
|
||||||
|
* @version 1.0
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return dish + "\n" + sideDish
|
return dish + "\n" + sideDish
|
||||||
+ "\n" + ingredients.toString().replace("[","").replace("]","") + "\n" + getTyp() + "\n";
|
+ "\n" + ingredients.toString().replace("[", "").replace("]", "") + "\n" + getTyp() + "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* User class creates User Objects
|
* User class creates User Objects
|
||||||
|
*
|
||||||
* @author Madeleine Vigier
|
* @author Madeleine Vigier
|
||||||
* @version 1.1
|
* @version 1.1
|
||||||
*/
|
*/
|
||||||
@ -13,6 +14,7 @@ public class User {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* constructor
|
* constructor
|
||||||
|
*
|
||||||
* @param nameParent1
|
* @param nameParent1
|
||||||
* @param nameParent2
|
* @param nameParent2
|
||||||
* @param billAddress
|
* @param billAddress
|
||||||
@ -32,7 +34,8 @@ public class User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Methode getPhonenumber() gets the Phonenumber
|
* the method getPhonenumber() gets the Phonenumber
|
||||||
|
*
|
||||||
* @return Phonenumber
|
* @return Phonenumber
|
||||||
* @author Madeleine Vigier
|
* @author Madeleine Vigier
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
@ -42,7 +45,8 @@ public class User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Methode getPassword() gets the password
|
* the method getPassword() gets the password
|
||||||
|
*
|
||||||
* @return password
|
* @return password
|
||||||
* @author Madeleine Vigier
|
* @author Madeleine Vigier
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
@ -52,7 +56,8 @@ public class User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Methode getNameParent1() gets nameParent1
|
* the method getNameParent1() gets nameParent1
|
||||||
|
*
|
||||||
* @return nameParent1
|
* @return nameParent1
|
||||||
* @author Madeleine Vigier
|
* @author Madeleine Vigier
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
@ -62,7 +67,8 @@ public class User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Methode getNameParent2() gets nameParent2
|
* the method getNameParent2() gets nameParent2
|
||||||
|
*
|
||||||
* @return nameParent2
|
* @return nameParent2
|
||||||
* @author Madeleine Vigier
|
* @author Madeleine Vigier
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
@ -72,7 +78,8 @@ public class User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Methode toString() returns a String representation of an object
|
* the methode toString() returns a String representation of an object
|
||||||
|
*
|
||||||
* @return a String with nameParent1, nameparent2, billAdress, phonenumber, nameChildren, password
|
* @return a String with nameParent1, nameparent2, billAdress, phonenumber, nameChildren, password
|
||||||
* @author Madeleine Vigier
|
* @author Madeleine Vigier
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
|
Loading…
Reference in New Issue
Block a user