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

📄 jobpk.java

📁 21天精通Java,这是一本英文书
💻 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 + -