?? product.java
字號(hào):
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; } }
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -