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

📄 product.java

📁 shoppingCar 购物车
💻 JAVA
字号:
package com.tarena.shoppingcar.entity;import java.io.Serializable;public class Product implements Serializable {	private static final long serialVersionUID = -5227487704178290936L;	private int id;	private String pname;	private String discription;	private double price;	public String getDiscription() {		return discription;	}	public void setDiscription(String discription) {		this.discription = discription;	}	public int getId() {		return id;	}	public void setId(int id) {		this.id = id;	}	public String getPname() {		return pname;	}	public void setPname(String pname) {		this.pname = pname;	}	public double getPrice() {		return price;	}	public void setPrice(double price) {		this.price = price;	}	@Override	public boolean equals(Object obj) {		if(obj.getClass() != this.getClass()){			return false;		}		Product product = (Product)obj;		if(this.id == product.id){			return true;		}		return false;	}	@Override	public int hashCode() {		return id;	}	}

⌨️ 快捷键说明

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