www.pudn.com > restrant.zip > MealItem.java, change:2013-12-24,size:663b


package com.alex.restrantol.util; 
 
import com.alex.restrantol.entity.MealEntity; 
 
public class MealItem { 
	 
	private MealEntity meal;  
	 
	private int quantity; 
 
	public MealItem() { 
		super(); 
	} 
 
	public MealItem(MealEntity meal) { 
		this.meal = meal; 
		this.quantity=1; 
	} 
	 
	public void addQuantity() { 
		this.quantity++; 
	} 
 
	public void subQuantity() { 
		this.quantity--; 
	} 
 
	public MealEntity getMeal() { 
		return meal; 
	} 
 
	public void setMeal(MealEntity meal) { 
		this.meal = meal; 
	} 
 
	public int getQuantity() { 
		return quantity; 
	} 
 
	public void setQuantity(int quantity) { 
		this.quantity = quantity; 
	} 
}