📄 jobskillpk.java
字号:
package data;
import java.io.*;
import javax.ejb.*;
public class JobSkillPK implements Serializable
{
public String job;
public String customer;
public String skill;
public JobSkillPK() {
}
public JobSkillPK(String job, String customer, String skill) {
this.job = job;
this.customer = customer;
this.skill = skill;
}
public String getJob() {
return job;
}
public String getCustomer() {
return customer;
}
public String getSkill() {
return skill;
}
public boolean equals(Object obj) {
if (obj instanceof JobSkillPK) {
JobSkillPK pk = (JobSkillPK)obj;
return (job.equals(pk.job) &&
customer.equals(pk.customer) &&
skill.equals(pk.skill)) ;
}
return false ;
}
public int hashCode() {
return (job.hashCode() ^ customer.hashCode() ^ skill.hashCode());
}
public String toString() {
return "JobSkillPK: job=" + job + ", customer=" + job + ", skill=" + skill;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -