}
- public boolean equals( HeapRegionNode hrn ) {
- assert hrn != null;
+ public boolean equals( Object o ) {
+
+ if( !( o instanceof HeapRegionNode) ) {
+ return false;
+ }
+
+ HeapRegionNode hrn = (HeapRegionNode) o;
return id.equals( hrn.getID() ) &&
isSingleObject == hrn.isSingleObject() &&
description.equals( hrn.getDescription() );
}
+ public int hashCode() {
+ return id.intValue();
+ }
+
public boolean isSingleObject() {