Java 常用的三个集合类(15)

2021-01-26 21:59

return name;

}

public void setName(String name) {

http://www.77cn.com.cn = name;

}

@Override

public int hashCode() {

final int PRIME = 31;

int result = 1;

result = PRIME * result + level;

result = PRIME * result + ((name == null) ? 0 : name.hashCode()); return result;

}

@Override

public boolean equals(Object obj) {

if (this == obj)

return true;

if (obj == null)

return false;

if (getClass() != obj.getClass())

return false;

final Dragon other = (Dragon) obj;

if (level != other.level)

return false;

if (name == null) {

if (http://www.77cn.com.cn != null)

return false;

} else if (!name.equals(http://www.77cn.com.cn))

return false;

return true;


Java 常用的三个集合类(15).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:发动机电控系统实训指导书

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: