@PublicAPI @Beta public class SmilesMemoizingMoleculeIterator extends MemoizingIterator<Molecule,String>
CloseableIterator of Molecules providing memoization of SMILES representation of returned
structures.
This is a convenience class based on MemoizingIterator with fixed generic types. Note that this implementation
can be error tolerant depending on the error handler specified in
#SmilesMemoizingMoleculeIterator(com.chemaxon.calculations.io.CloseableIterator, com.google.common.base.Function, com.chemaxon.calculations.io.Sink).
Please note that this class is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.
| Constructor and Description |
|---|
SmilesMemoizingMoleculeIterator(CloseableIterator<Molecule> mi,
Function<Molecule,String> transformation,
Consumer<Exception> errorHandler)
Construct.
|
close, computeNext, getMemoized, getMemoizedFunction, getMemoizedIfPresent, getMemoizedOrDefault, getMemoizedOrDefaultFunction, sizeendOfData, hasNext, next, peekremoveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformforEachRemaining, hasNext, next, removepublic SmilesMemoizingMoleculeIterator(CloseableIterator<Molecule> mi, Function<Molecule,String> transformation, Consumer<Exception> errorHandler)
mi - CloseableIterator of Molecules to delegatetransformation - Transformation to transform Molecule to SMILESerrorHandler - Error handler. Expecting errors in executing the transformation.