softwarepk.java

来自「openacs source for CPE wan management」· Java 代码 · 共 54 行

JAVA
54
字号
package org.openacs;

/**
 * This is the bean class for the SoftwareBean enterprise bean.
 * Created 2007.11.24 18.22.55
 * @author Administrator
 */
public final class SoftwarePK implements java.io.Serializable {
    
    public java.lang.Integer hwid;
    public java.lang.String version;
    /**
     * @see java.lang.Object#equals(java.lang.Object)
     */
    public SoftwarePK () {
    }
    public SoftwarePK (Integer hwid, String v) {
        this.hwid = hwid;
        version = v;
    }
    @Override
    public boolean equals(java.lang.Object otherOb) {
        
        if (this == otherOb) {
            return true;
        }
        if (!(otherOb instanceof org.openacs.SoftwarePK)) {
            return false;
        }
        org.openacs.SoftwarePK other = (org.openacs.SoftwarePK) otherOb;
        return (
                
                (hwid==null?other.hwid==null:hwid == other.hwid)
                &&
                (version==null?other.version==null:version.equals(other.version))
                );
    }
    
    /**
     * @see java.lang.Object#hashCode()
     */
    @Override
    public int hashCode() {
        return (
                
                (hwid==null?0:hwid.hashCode())
                ^
                (version==null?0:version.hashCode())
                
                );
    }
    
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?