type.java

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

JAVA
29
字号
package object;import java.io.*;public class type implements Serializable{  public String id;  public String name;  public String remark;  public type(String id,String name,String remark) {    this.id=id;    this.name=name;    this.remark=remark;;  }  public boolean equals(Object obj) {   if (obj != null) {     if (this.getClass().equals(obj.getClass())) {       type that = (type) obj;       return ( ( (this.id == null) && (that.id == null)) ||               (this.id != null && this.id.equals(that.id))) ;     }   }   return false; } public int hashCode() {   return (id + "" + name+""+remark).hashCode(); }}

⌨️ 快捷键说明

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