X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2FMCview%2FResidue.java;h=edef5f1bcfe22cb7826fed42dce87bbbc873a5e8;hb=39b4859e1a1b011af5d06058461db4d075acb578;hp=977323da719c4f0415de143090e5e4532e53888f;hpb=ad15cff29620f960119f80176f1fd443da9f6763;p=jalview.git diff --git a/src/MCview/Residue.java b/src/MCview/Residue.java index 977323d..edef5f1 100755 --- a/src/MCview/Residue.java +++ b/src/MCview/Residue.java @@ -20,35 +20,38 @@ */ package MCview; -import java.util.*; +import java.util.Vector; public class Residue { - Vector atoms = new Vector(); + Vector atoms; int number; int count; - int seqnumber; - - public Residue(Vector atoms, int number, int count) + public Residue(Vector resAtoms, int number, int count) { - this.atoms = atoms; + this.atoms = resAtoms; this.number = number; this.count = count; } public Atom findAtom(String name) { - for (int i = 0; i < atoms.size(); i++) + for (Atom atom : atoms) { - if (((Atom) atoms.elementAt(i)).name.equals(name)) + if (atom.name.equals(name)) { - return (Atom) atoms.elementAt(i); + return atom; } } return null; } + + public Vector getAtoms() + { + return this.atoms; + } }