package de.philipp1994.lunch.common;

import java.io.Serializable;

public class LunchMenuItem implements Serializable {
	
	private static final long serialVersionUID = -1796231509545846611L;
	private final String itemName;
	private final double price;
	
	public static final double PRICE_UNKOWN = -1;

	public LunchMenuItem(String itemName, double price) {
		super();
		this.itemName = itemName;
		this.price = price;
	}
	
	public String getItemName() {
		return itemName;
	}

	public double getPrice() {
		return price;
	}

	@Override
	public String toString() {
		return "LunchMenuItem [itemName=" + itemName + ", price=" + price + "]";
	}
}

@@ -215,16 +215,25 @@
 itemName
+, comment
 ;%0A%09priva
@@ -364,19 +364,8 @@
 ) %7B%0A
-%09%09super();%0A
 %09%09th
@@ -410,16 +410,190 @@
  price;%0A
+%09%09this.comment = null;%0A%09%7D%0A%0A%09public LunchMenuItem(String itemName, double price, String comment) %7B%0A%09%09this.itemName = itemName;%0A%09%09this.price = price;%0A%09%09this.comment = comment;%0A
 %09%7D%0A%09%0A%09pu
@@ -691,16 +691,68 @@
 ce;%0A%09%7D%0A%0A
+%09public String getComment() %7B%0A%09%09return comment;%0A%09%7D%0A%0A
 %09@Overri
@@ -833,16 +833,41 @@
 ame + %22,
+ comment=%22 + comment + %22,
  price=%22
@@ -885,10 +885,11 @@
 %22%5D%22;%0A%09%7D%0A
+%0A
 %7D%0A

Add comment field to lunchmenuitem