public class FieldObject {
/**
* id
*/
private Integer id;
/**
*
*/
public FieldObject() {
}
/**
* @param id
*/
public FieldObject(Integer id) {
this.id = id;
}
/**
* @return the id
*/
public Integer getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(Integer id) {
this.id = id;
}
@Override
public boolean equals(Object obj) {
if(this == obj){
return true;
}
if(obj == null){
return false;
}
if(obj instanceof FieldObject ){
FieldObject o = (FieldObject)obj;
return id==o.id;
}
return false;
}
@Override
public int hashCode() {
return id;
}
}
java_FieldObject
最新推荐文章于 2021-03-19 14:37:23 发布