X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2FMCview%2FAtom.java;fp=src%2FMCview%2FAtom.java;h=ab038a016051228fee3762a1141b84e69ed48a61;hb=d28fba781c93c83b6082e74b22a8bf52d241d609;hp=68a7c21e53bf0244449e1096b4a4a33466031ecb;hpb=65c671b0263c0c692a4a0a0905a4acc2fc6b1065;p=jalview.git diff --git a/src/MCview/Atom.java b/src/MCview/Atom.java index 68a7c21..ab038a0 100755 --- a/src/MCview/Atom.java +++ b/src/MCview/Atom.java @@ -109,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;