chemaxon.util.iterator
Class MoleculeIteratorFactory

java.lang.Object
  extended by chemaxon.util.iterator.MoleculeIteratorFactory

public class MoleculeIteratorFactory
extends java.lang.Object

Molecule iterator factory. Creates MoleculeIterator objects for iterating through collection or array of molecules (Molecule objects).

Since:
Marvin 5.2
Author:
Zsolt Mohacsi

Constructor Summary
MoleculeIteratorFactory()
           
 
Method Summary
static MoleculeIterator createMoleculeIterator(java.util.Collection<Molecule> moleculeCollection)
          Creates a MoleculeIterator object for iterating through collection of molecules (Molecule objects).
static MoleculeIterator createMoleculeIterator(Molecule[] moleculeArray)
          Creates a MoleculeIterator object for iterating through a molecule array (Molecule[]).
static MoleculeIterator getMoleculeIterator(MolImporter importer)
          Gets a molecule iterator from the importer.
static MoleculeIterator[] getMoleculeIterators(MolImporter[] importers)
          Gets molecule iterators from the importers in an array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoleculeIteratorFactory

public MoleculeIteratorFactory()
Method Detail

createMoleculeIterator

public static MoleculeIterator createMoleculeIterator(java.util.Collection<Molecule> moleculeCollection)
Creates a MoleculeIterator object for iterating through collection of molecules (Molecule objects).

Parameters:
moleculeCollection - is a collection of molecules
Returns:
a molecule iterator that can be used for iterating through the collection

createMoleculeIterator

public static MoleculeIterator createMoleculeIterator(Molecule[] moleculeArray)
Creates a MoleculeIterator object for iterating through a molecule array (Molecule[]).

Parameters:
moleculeArray - is a molecule array
Returns:
a molecule iterator that can be used for iterating through the molecule array

getMoleculeIterator

public static MoleculeIterator getMoleculeIterator(MolImporter importer)
Gets a molecule iterator from the importer. The iterator starts at the current position.

Parameters:
importer - the MolImporter
Returns:
the molecule iterator
See Also:
MDocSource.getMoleculeIterator()

getMoleculeIterators

public static MoleculeIterator[] getMoleculeIterators(MolImporter[] importers)
Gets molecule iterators from the importers in an array.

Parameters:
importers - the MolImporter array
Returns:
the molecule iterator array
See Also:
getMoleculeIterator(MolImporter)