implemented equals()

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1724170 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2016-01-12 06:35:58 +00:00
parent 0a55d57763
commit 4fa6c2fe47
1 changed files with 5 additions and 0 deletions

View File

@ -140,4 +140,9 @@ public class ZkNodeProps implements JSONWriter.Writable {
if(o==null) return b;
return Boolean.parseBoolean(o.toString());
}
@Override
public boolean equals(Object that) {
return that instanceof ZkNodeProps && ((ZkNodeProps)that).propMap.equals(this.propMap);
}
}