chemaxon.util.iterator
Class IteratorFactory.BondNeighbourIterator

java.lang.Object
  extended by chemaxon.util.iterator.IteratorFactory.NeighbourIterator<MolBond>
      extended by chemaxon.util.iterator.IteratorFactory.BondNeighbourIterator
All Implemented Interfaces:
java.util.Iterator<MolBond>
Enclosing class:
IteratorFactory

public class IteratorFactory.BondNeighbourIterator
extends IteratorFactory.NeighbourIterator<MolBond>

The BondNeighbourIterator class provides an iterator to process the bonds connecting to the specified atom according to the atom and bond related behavior of this factory. The following bonds are excluded:


Field Summary
 
Fields inherited from class chemaxon.util.iterator.IteratorFactory.NeighbourIterator
atom, currentBond, secondaryBonds
 
Constructor Summary
IteratorFactory.BondNeighbourIterator(MolAtom atom)
          Constructs an iterator to process the bonds connecting to the specified atom.
 
Method Summary
 MolBond next()
          Returns the next bond in the iteration.
 MolBond nextBond()
          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.BondNeighbourIterator

public IteratorFactory.BondNeighbourIterator(MolAtom atom)
Constructs an iterator to process the bonds connecting to the specified atom. The following bonds are excluded:

Parameters:
atom - the atom whose bonds to be iterated
Method Detail

nextBond

public MolBond nextBond()
Deprecated. Use next() instead.

Returns the next bond in the iteration.

Returns:
the next bond in the iteration

next

public MolBond next()
Returns the next bond in the iteration.

Returns:
the next bond in the iteration
Throws:
java.util.NoSuchElementException