

class MenuItem {
	private String name = null;
	private int calorieCount = 0;
	private double price = 0.0;

	public MenuItem(String n, int c, double p) {
		name = n;
		calorieCount = c;
		price = p;
	}

	public String getName() { return name; }
	public int getCalorieCount() { return calorieCount; }
	public double getPrice() { return price; }

	public void setName(String n) { name = n; };
	public void setCalorieCount(int c) { calorieCount = c; }
	public void setPrice(double p) { price = p; }

	@Override
	public String toString() {
		return String.format("%s,%d,%f", name, calorieCount, price);
	}

	@Override
	public boolean equals(Object o) {
		if (!(o instanceof MenuItem)) {
			return false;	
		}
		
		MenuItem that = (MenuItem) o;
	
		return this.name.equals(that.name);
	}

} // End of file 
