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

@@ -28,14 +28,21 @@ import java.util.List;
public class GraphPart implements Serializable {
public static final int TYPE_NONE = 0;
public static final int TYPE_LOOP_HEADER = 1;
public static final int TYPE_PRELOOP = 3;
public static final int TYPE_REENTRY = 2;
public boolean traversed = false;
public int DFSP_pos = 0;
public GraphPart iloop_header;
public int type = TYPE_NONE;
public boolean irreducible = false;
public int start = 0;
@@ -315,10 +322,10 @@ public class GraphPart implements Serializable {
return false;
}
final GraphPart other = (GraphPart) obj;
if (this.start != other.start) {
if (start != other.start) {
return false;
}
if (this.end != other.end) {
if (end != other.end) {
return false;
}
return true;