Kommentare angepasst
This commit is contained in:
parent
922345077b
commit
6d690410ec
@ -16,6 +16,7 @@ public class Menue{
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* constructor
|
* constructor
|
||||||
|
*
|
||||||
* @param date date of meal
|
* @param date date of meal
|
||||||
* @param dish meal
|
* @param dish meal
|
||||||
* @param sideDish side dish
|
* @param sideDish side dish
|
||||||
@ -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,7 +59,13 @@ 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
|
||||||
|
@ -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