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

📄 bookspk.java~1~

📁 java编程最好的书籍,感觉对初学者或者中级java人员帮助很大
💻 JAVA~1~
字号:
package test;

import java.io.*;

public class BooksPK
    implements Serializable {
  public String bookid;

  public BooksPK() {
  }

  public BooksPK(String bookid) {
    this.bookid = bookid;
  }

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

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

⌨️ 快捷键说明

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