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

📄 product.java

📁 在线足球社区源代码
💻 JAVA
字号:
package web.domain;
/*
 * 
 * @author sun
 *
 * TODO 要更改此生成的类型注释的模板,请转至
 * 窗口 - 首选项 - Java - 代码样式 - 代码模板
 */
public class Product {
	private String productCode;
	private String price;
	private int quantity;
	private String description;
	
	public Product(){
		
	}
	public Product(String productCode,String price,int quantity,String description){
		this.productCode = productCode;
		this.price = price;
		this.quantity = quantity;
		this.description = description;
	}
	
	/**
	 * @return 返回 description。
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * @param description 要设置的 description。
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * @return 返回 price。
	 */
	public String getPrice() {
		return price;
	}
	/**
	 * @param price 要设置的 price。
	 */
	public void setPrice(String price) {
		this.price = price;
	}
	/**
	 * @return 返回 productCode。
	 */
	public String getProductCode() {
		return productCode;
	}
	/**
	 * @param productCode 要设置的 productCode。
	 */
	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}
	/**
	 * @return 返回 quantity。
	 */
	public int getQuantity() {
		return quantity;
	}
	/**
	 * @param quantity 要设置的 quantity。
	 */
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	public String toString(){
		return "Product: "+productCode+" "+price+" "+quantity+" "+description;
	}
}

⌨️ 快捷键说明

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