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

📄 matchedpk.java

📁 21天学通J2EE的例子4
💻 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 + -