public class IteratorFactory.AtomIterator extends Object implements Iterator<MolAtom>
AtomIterator
class provides an iterator for the atoms of
the specified molecule of the factory according to the atom related
behavior set in the factory.Constructor and Description |
---|
IteratorFactory.AtomIterator()
Constructs an atom iterator for the specified molecule of the factory
according to the atom related behavior set in the factory.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Decides whether the iteration has more element.
|
MolAtom |
next()
Returns the next atom in the iteration.
|
MolAtom |
nextAtom()
Deprecated.
As of Marvin 6.2, Use
next() instead. |
void |
remove()
Removes the next atom in the iteration.
|
public IteratorFactory.AtomIterator()
public boolean hasNext()
@Deprecated public MolAtom nextAtom()
next()
instead.public MolAtom next()
next
in interface Iterator<MolAtom>
NoSuchElementException
- iteration has no more elements.public void remove()
next
.remove
in interface Iterator<MolAtom>
IllegalStateException
- if the next
method has not yet been called,
or the remove method has already been called after the
last call to the next
method.