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
-
Method Summary
Modifier and TypeMethodDescriptionstatic MoleculeIterator
createMoleculeIterator
(Molecule[] moleculeArray) Creates aMoleculeIterator
object for iterating through a molecule array (Molecule
[]).static MoleculeIterator
createMoleculeIterator
(Collection<Molecule> moleculeCollection) Creates aMoleculeIterator
object for iterating through collection of molecules (Molecule
objects).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.
-
Constructor Details
-
MoleculeIteratorFactory
public MoleculeIteratorFactory()
-
-
Method Details
-
createMoleculeIterator
Creates aMoleculeIterator
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
Creates aMoleculeIterator
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
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:
-