Package chemaxon.formats
Class MoleculeIteratorFactory
java.lang.Object
chemaxon.formats.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[] array) Creates aMoleculeIteratorobject for iterating through the given array ofMoleculeobjects.static MoleculeIteratorcreateMoleculeIterator(Collection<Molecule> collection) Creates aMoleculeIteratorobject for iterating through the given collection ofMoleculeobjects.static MoleculeIteratorgetMoleculeIterator(MolImporter importer) Returns a molecule iterator for the givenMolImporter.static MoleculeIterator[]getMoleculeIterators(MolImporter[] importers) Gets molecule iterators from the importers in an array.static List<MoleculeIterator> getMoleculeIterators(List<MolImporter> importers) Returns molecule iterators fof the given list ofMolImporterobjects.
-
Constructor Details
-
MoleculeIteratorFactory
public MoleculeIteratorFactory()
-
-
Method Details
-
createMoleculeIterator
Creates aMoleculeIteratorobject for iterating through the given collection ofMoleculeobjects.- Parameters:
collection- a collection of molecules- Returns:
- a molecule iterator that can be used for iterating through the collection
-
createMoleculeIterator
Creates aMoleculeIteratorobject for iterating through the given array ofMoleculeobjects.- Parameters:
array- a molecule array- Returns:
- a molecule iterator that can be used for iterating through the molecule array
-
getMoleculeIterator
Returns a molecule iterator for the givenMolImporter. The iterator starts at the current position.- Parameters:
importer- the MolImporter- Returns:
- the molecule iterator
- See Also:
-
getMoleculeIterators
Returns molecule iterators fof the given list ofMolImporterobjects. Each iterator starts at the current position of the corresponding importer.- Parameters:
importers- the MolImporter array- Returns:
- the molecule iterator array
- See Also:
-
getMoleculeIterators
Gets molecule iterators from the importers in an array.- Parameters:
importers- the MolImporter array- Returns:
- the molecule iterator array
- See Also:
-