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