Package chemaxon.formats
Interface MoleculeIterator
Molecule iterator interface. Extends
Iterator interface with an additional method to estimate
the progress of the iteration.-
Method Summary
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Method Details
-
next
Molecule next()Gets the next molecule.- Specified by:
nextin interfaceIterator<Molecule>- Returns:
- the molecule or
nullat end of file - Throws:
NoSuchElementException- if an error occurred, and the next element cannot be returned
-
hasNext
boolean hasNext()Tests whether the iteration has more elements. -
estimateProgress
double estimateProgress()Estimates the iteration progress.- Returns:
- number between 0 and 1
-