Commit e026c430 by lepdou

update

parent e0cfa5af
......@@ -49,6 +49,16 @@ public class Cluster extends BaseEntity implements Comparable<Cluster>{
if (o == null){
return 1;
}
return (int) (getId() - o.getId());
long selfId = getId();
long targetId = o.getId();
if (selfId > targetId){
return 1;
}else if (selfId == targetId){
return 0;
}else {
return -1;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment