JAL-1294 JAL-1325 test annotation threshold line equivalence
[jalview.git] / src / jalview / datamodel / GraphLine.java
index 494ffae..619dbd2 100755 (executable)
@@ -51,4 +51,19 @@ public class GraphLine
       displayed = from.displayed;
     }
   }
+  @Override
+  public boolean equals(Object obj)
+  {
+    if (obj!=null && obj instanceof GraphLine)
+    {
+      GraphLine other = (GraphLine) obj;
+      return displayed == other.displayed
+              && value != other.value
+              && (colour != null ? (other.colour != null && other.colour
+                      .equals(label)) : other.colour == null)
+              && (label != null ? (other.label != null && other.label
+                      .equals(label)) : other.label == null);
+    }
+    return false;
+  }
 }