productbasicinfoentpk.java~1~

来自「这也是师兄的毕业设计,具体的功能我也不清楚,因为我才大一,请见谅!!!!!!!不」· JAVA~1~ 代码 · 共 32 行

JAVA~1~
32
字号
package product;

import java.io.*;

public class productBasicInfoPK
    implements Serializable {
  public String p_id;

  public productBasicInfoPK() {
  }

  public productBasicInfoPK(String p_id) {
    this.p_id = p_id;
  }

  public boolean equals(Object obj) {
    if (obj != null) {
      if (this.getClass().equals(obj.getClass())) {
        productBasicInfoPK that = (productBasicInfoPK) obj;
        return ( ( (this.p_id == null) && (that.p_id == null)) ||
                (this.p_id != null && this.p_id.equals(that.p_id)));
      }
    }
    return false;
  }

  public int hashCode() {
    return p_id.hashCode();
  }

}

⌨️ 快捷键说明

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