hashCode and equals

This commit is contained in:
honfika@gmail.com
2015-07-12 18:14:26 +02:00
parent 904d1f64f1
commit 9a0a54bebb
24 changed files with 160 additions and 128 deletions

View File

@@ -36,7 +36,7 @@ public class Loop implements Serializable {
public List<Integer> breakCandidatesLevels = new ArrayList<>();
public long id;
public final long id;
public int leadsToMark;
@@ -73,10 +73,9 @@ public class Loop implements Serializable {
return false;
}
final Loop other = (Loop) obj;
if (this.id != other.id) {
if (id != other.id) {
return false;
}
return true;
}
}