Mercurial > hg > Members > shoshi > jungle > jungle-core
changeset 198:a7ec6978e725
change TreeNode compareTo hashCode
author | tatsuki |
---|---|
date | Wed, 06 May 2015 18:40:15 +0900 |
parents | 6145866b2ebc |
children | 5aad7dbb390e 07475e00049d |
files | src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTreeNode.java |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTreeNode.java Wed May 06 15:04:58 2015 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTreeNode.java Wed May 06 18:40:15 2015 +0900 @@ -11,7 +11,6 @@ import java.rmi.dgc.VMID; public class DefaultTreeNode implements TreeNode { - //private final DefaultNode wrap; private List<TreeNode> children; private TreeMap<String, ByteBuffer> attrs; final String nodeId = new VMID().toString(); @@ -60,6 +59,6 @@ @Override public int compareTo(TreeNode o) { - return nodeId.compareTo(o.getNodeId()); + return this.hashCode() - o.hashCode(); } }