Package chemaxon.util.iterator
Class IteratorFactory.AtomNeighbourIterator
java.lang.Object
chemaxon.util.iterator.IteratorFactory.NeighbourIterator<MolAtom>
chemaxon.util.iterator.IteratorFactory.AtomNeighbourIterator
- Enclosing class:
- IteratorFactory
public class IteratorFactory.AtomNeighbourIterator
extends IteratorFactory.NeighbourIterator<MolAtom>
The
AtomNeighbourIterator
class provides an iterator to
process the atoms connecting to a specified atom according to the atom
and bond related behavior of this factory.-
Field Summary
Fields inherited from class chemaxon.util.iterator.IteratorFactory.NeighbourIterator
atom, currentBond, secondaryBonds
-
Constructor Summary
ConstructorDescriptionAtomNeighbourIterator
(MolAtom atom) Constructs an iterator to process the atoms connecting to the specified atom according to the atom and bond related behavior of this factory. -
Method Summary
Methods inherited from class chemaxon.util.iterator.IteratorFactory.NeighbourIterator
getBond, hasNext, nextBondIndex, remove
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
AtomNeighbourIterator
Constructs an iterator to process the atoms connecting to the specified atom according to the atom and bond related behavior of this factory. If the atom related behavior of the facotory is set to skip the multicenters then:- multicenters are excluded from the neighbours of the atom
- the represented atoms of the multicenter are included instead the multicenter
-
-
Method Details
-
nextAtom
Deprecated, for removal: This API element is subject to removal in a future version.As of Marvin 6.2, Usenext()
instead.Returns the next atom in the iteration.- Returns:
- the next atom in the iteration
-
next
Returns the next atom in the iteration.- Returns:
- the next atom in the iteration
- Throws:
NoSuchElementException
-
next()
instead.