📄 bookspk.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 + -