AtomsetIterator, MoleculeIterator, MoleculesetIterator, java.io.SerializableMoleculeIteratorAllMolecules, MoleculeIteratorArrayList, MoleculeIteratorMoleculepublic class MoleculeIteratorArrayListSimple extends java.lang.Object implements MoleculeIterator, java.io.Serializable
| Modifier and Type | Field | Description |
|---|---|---|
protected MoleculeSetSinglet |
atomSetSinglet |
|
protected int |
cursor |
Index of element to be returned by subsequent call to next.
|
protected IMoleculeList |
list |
| Constructor | Description |
|---|---|
MoleculeIteratorArrayListSimple() |
Constructs new iterator with an empty list.
|
MoleculeIteratorArrayListSimple(IMoleculeList atomList) |
Constructs new iterator set to iterate given list (upon reset).
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
nBody() |
Returns 1, indicating that this is an atom iterator.
|
IMoleculeList |
next() |
Same as nextAtom().
|
IMolecule |
nextMolecule() |
Returns the next iterate and advances the iterator.
|
void |
reset() |
Puts iterator in state ready to begin iteration.
|
void |
setList(IMoleculeList atomList) |
Sets the list for iteration.
|
int |
size() |
Returns the number of iterates that would be given by this iterator
if reset with the current list.
|
void |
unset() |
Puts iterator in state in which hasNext is false.
|
protected int cursor
protected IMoleculeList list
protected final MoleculeSetSinglet atomSetSinglet
public MoleculeIteratorArrayListSimple()
public MoleculeIteratorArrayListSimple(IMoleculeList atomList)
public void setList(IMoleculeList atomList)
public int nBody()
nBody in interface AtomsetIteratorpublic void unset()
unset in interface AtomsetIteratorpublic IMolecule nextMolecule()
nextMolecule in interface MoleculeIteratorpublic IMoleculeList next()
next in interface MoleculesetIteratorpublic int size()
size in interface AtomsetIteratorpublic void reset()
reset in interface AtomsetIterator