Issue #114 better loop detection

This commit is contained in:
Jindra Pet��k
2013-06-26 21:22:19 +02:00
parent 1d64c3e166
commit cdfe475fce
10 changed files with 75 additions and 23 deletions
@@ -195,9 +195,27 @@ public class DirectValueTreeItem extends TreeItem {
@Override
public int hashCode() {
int hash = 7;
hash = 71 * hash + Objects.hashCode(this.value);
hash = 71 * hash + Objects.hashCode(this.constants);
hash = 71 * hash + pos;
return hash;
}
@Override
public boolean valueEquals(GraphTargetItem obj) {
if (obj == null) {
return false;
}
final DirectValueTreeItem other = (DirectValueTreeItem) obj;
if (!Objects.equals(this.value, other.value)) {
return false;
}
if (!Objects.equals(this.constants, other.constants)) {
return false;
}
return true;
}
@Override
public boolean equals(Object obj) {
if (obj == null) {