| org.obe.spi.model.PersistentIterator
All known Subclasses: org.obe.engine.util.PersistentArrayIterator,
PersistentIterator | public interface PersistentIterator extends Serializable,Iterator(Code) | | Supports persistent iteration over arbitrary content. This iterator can be
serialized, deserialized, and used to continue iteration. The target content
is not persisted, and the caller must check whether it is still available by
calling
PersistentIterator.hasContent , and restore the original content if necessary
by calling
PersistentIterator.setContent .
author: Adrian Price |
Method Summary | |
boolean | hasContent() Checks whether the target content is available. | boolean | isModified() Returns whether the iterator has changed since it was created or last
deserialized. | void | reset() Resets the iterator, clearing the content, index and internal fields.
The iterator must be re-initialied by calling
PersistentIterator.setContent before
it can be used to perform further iterations. | void | setContent(Object content) Sets the content over which to iterate (or continue iteration). |
hasContent | boolean hasContent()(Code) | | Checks whether the target content is available. The target content is
cleared during object serialization, and must be restored externally
by calling
PersistentIterator.setContent before continuing iteration over a
deserialized instance of this class.
true if the content is available. |
|
|