⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cartitem.java

📁 jsf 控件的中ajax的支持 jsf控件的应用
💻 JAVA
字号:
package beans;

public class CartItem {
	private Product product;
	private Integer quantity;
	
	public CartItem(Product product, Integer quantity) {
		this.product = product;
		this.quantity = quantity;
	}

	public CartItem(Product product) {
		this(product, new Integer(1));
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = (quantity == null) ? new Integer(0) : quantity;
	}
	
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -