src/common/Entity.java

(完整代码) 917B

/** 
*  @?????? ???�?
 *  @�???? ??��?��??
 *  @??��?? 2008-6-21
 * 
 */

package common;

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 String  id;

	

	public String  getId() {
		return id;
	}

	public void setId(String 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;
		return true;
	}

	public Entity(String  id) {
		super();
		this.id = id;
	}

}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。