?? jobpk.java
字號:
package data;
import java.io.*;
import javax.ejb.*;
public class JobPK implements Serializable
{
public String ref;
public String customer;
public JobPK() {
}
public JobPK(String ref, String customer) {
this.ref = ref;
this.customer = customer;
}
public String getRef() {
return ref;
}
public String getCustomer() {
return customer;
}
public boolean equals(Object obj) {
if (obj instanceof JobPK) {
JobPK pk = (JobPK)obj;
return (pk.ref.equals(ref) && pk.customer.equals(customer)) ;
}
return false ;
}
public int hashCode() {
return (ref.hashCode() ^ customer.hashCode());
}
public String toString() {
return "JobPK: ref=\"" + ref + "\", customer=\"" + customer + "\"";
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -