Class MoleculeIteratorFactory

java.lang.Object
chemaxon.util.iterator.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 Details

    • MoleculeIteratorFactory

      public MoleculeIteratorFactory()
  • Method Details

    • 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:
    • 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: