configurationpk.java

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

JAVA
59
字号
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package org.openacs;/** * * @author Administrator */public class ConfigurationPK {    public java.lang.Integer hwid;    public java.lang.String name;    /**     * @see java.lang.Object#equals(java.lang.Object)     */    public ConfigurationPK () {    }    public ConfigurationPK (Integer hwid, String name) {        this.hwid = hwid;        this.name = name;    }    @Override    public boolean equals(java.lang.Object otherOb) {        if (this == otherOb) {            return true;        }        if (!(otherOb instanceof org.openacs.ConfigurationPK)) {            return false;        }        org.openacs.ConfigurationPK other = (org.openacs.ConfigurationPK) otherOb;        return (                (hwid==null?other.hwid==null:hwid == other.hwid)                &&                (name==null?other.name==null:name.equals(other.name))                );    }    /**     * @see java.lang.Object#hashCode()     */    @Override    public int hashCode() {        return (                (hwid==null?0:hwid.hashCode())                ^                (name==null?0:name.hashCode())                );    }}

⌨️ 快捷键说明

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