chemaxon.util.iterator
Class IteratorFactory.AtomNeighbourIterator

java.lang.Object
  extended by chemaxon.util.iterator.IteratorFactory.NeighbourIterator<MolAtom>
      extended by chemaxon.util.iterator.IteratorFactory.AtomNeighbourIterator
All Implemented Interfaces:
Iterator<MolAtom>
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
IteratorFactory.AtomNeighbourIterator(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
 MolAtom next()
          Returns the next atom in the iteration.
 MolAtom nextAtom()
          Deprecated. Use next() instead.
 
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
 

Constructor Detail

IteratorFactory.AtomNeighbourIterator

public IteratorFactory.AtomNeighbourIterator(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. If the atom related behavior of the facotory is set to skip the multicenters then:

Method Detail

nextAtom

@Deprecated
public MolAtom nextAtom()
Deprecated. Use next() instead.

Returns the next atom in the iteration.

Returns:
the next atom in the iteration

next

public MolAtom next()
Returns the next atom in the iteration.

Returns:
the next atom in the iteration
Throws:
NoSuchElementException