Class MoleculeIteratorFactory


  • @PublicAPI
    public class MoleculeIteratorFactory
    extends Object
    Molecule iterator factory. Creates MoleculeIterator objects for iterating through collection or array of molecules (Molecule objects).
    Since:
    Marvin 5.2
    • Constructor Detail

      • MoleculeIteratorFactory

        public MoleculeIteratorFactory()
    • Method Detail

      • createMoleculeIterator

        public static MoleculeIterator createMoleculeIterator​(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()