productpk.java
来自「一个很不错的电子商务后台管理系统 这是一个电子商务网站的后台管理系统 要」· Java 代码 · 共 35 行
JAVA
35 行
package xian.bin.product;
import java.io.Serializable;
public class ProductPK
implements Serializable {
public String pID;
public ProductPK() {
}
public ProductPK(String pID) {
this.pID = pID;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (! (obj instanceof ProductPK)) {
return false;
}
ProductPK that = (ProductPK) obj;
if (! (that.pID == null ? this.pID == null : that.pID.equals(this.pID))) {
return false;
}
return true;
}
public int hashCode() {
int result = 17;
result = 37 * result + this.pID.hashCode();
return result;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?