/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

package etomica.api;

/**
 * Interface for a set of IAtoms.  The IAtomSet might contain 0, 1, 2 or many
 * IAtoms.
 * 
 * @author Andrew Schultz
 */
public interface IAtomList {

    /**
     * Returns the i-th atom, with numbering beginning from 0. 
     * If i is greater than count-1, throws an IllegalArgumentException.
     */
    public IAtom getAtom(int i);

    /**
     * @return the number of atoms in the set
     */
    public int getAtomCount();
}
@@ -244,18 +244,19 @@
 e for a 
+li
 s
-e
 t of IAt
@@ -274,10 +274,11 @@
 Atom
-Se
+Lis
 t mi
@@ -454,18 +454,84 @@
 m 0.
- %0A     * I
+%0A     * @param i the index of the desired atom in the list%0A     *          i
 f i 
@@ -591,16 +591,50 @@
 eption.%0A
+     * @return the requested atom%0A
      */%0A
@@ -717,18 +717,19 @@
  in the 
+li
 s
-e
 t%0A     *

fix javadoc for IAtomList