JAL-2164 add transferred annotation to sequence
[jalview.git] / src / MCview / Atom.java
index 1e7f973..ab038a0 100755 (executable)
@@ -46,8 +46,6 @@ public class Atom
 
   public int type;
 
-  public char ss;
-
   Color color = Color.lightGray;
 
   public String chain;
@@ -111,6 +109,23 @@ public class Atom
     }
   }
 
+  @Override
+  public boolean equals(Object that)
+  {
+    if (this == that || that == null)
+    {
+      return true;
+    }
+    if (that instanceof Atom)
+    {
+      Atom other = (Atom) that;
+      return other.resName.equals(this.resName)
+              && other.resNumber == this.resNumber
+              && other.resNumIns.equals(this.resNumIns)
+              && other.chain.equals(this.chain);
+    }
+    return false;
+  }
   public Atom(float x, float y, float z)
   {
     this.x = x;