Package chemaxon.util.iterator
Class MoleculeIteratorFactory
java.lang.Object
chemaxon.util.iterator.MoleculeIteratorFactory
Molecule iterator factory. Creates
MoleculeIterator objects for iterating through collection or array of
molecules (Molecule objects).- Since:
- Marvin 5.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MoleculeIteratorcreateMoleculeIterator(Molecule[] moleculeArray) Creates aMoleculeIteratorobject for iterating through a molecule array (Molecule[]).static MoleculeIteratorcreateMoleculeIterator(Collection<Molecule> moleculeCollection) Creates aMoleculeIteratorobject for iterating through collection of molecules (Moleculeobjects).static MoleculeIteratorgetMoleculeIterator(MolImporter importer) Gets a molecule iterator from the importer.static MoleculeIterator[]getMoleculeIterators(MolImporter[] importers) Gets molecule iterators from the importers in an array.
-
Constructor Details
-
MoleculeIteratorFactory
public MoleculeIteratorFactory()
-
-
Method Details
-
createMoleculeIterator
Creates aMoleculeIteratorobject for iterating through collection of molecules (Moleculeobjects).- Parameters:
moleculeCollection- is a collection of molecules- Returns:
- a molecule iterator that can be used for iterating through the collection
-
createMoleculeIterator
Creates aMoleculeIteratorobject 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
Gets a molecule iterator from the importer. The iterator starts at the current position.- Parameters:
importer- the MolImporter- Returns:
- the molecule iterator
- See Also:
-
getMoleculeIterators
Gets molecule iterators from the importers in an array.- Parameters:
importers- the MolImporter array- Returns:
- the molecule iterator array
- See Also:
-