src/common/entity/Entity.java
(开头部分) 1014B这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* @?????? ???榫?
* @浣???? ??℃?ラ??
* @??ユ?? 2008-6-21
*
*/
package common.entity;
import java.io.Serializable;
public abstract class Entity implements Serializable {
private static final long serialVersionUID = 1L;
public Entity() {
super();
// TODO Auto-generated constructor stub
}
private Integer id;
public Integer getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
/*public int hashCode() {
final int PRIME = 31;
int result = 1;
result = PRIME * result + ((id == 0) ? 0 : id);
return result;
}*/
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final Entity other = (Entity) obj;
if (id == 0) {
if (other.id != 0)
return false;
} else if (id!=other.id)
return false;
return true;
}
public Entity(int id) {
super();
this.id = id;
}
后面还有 1 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。