com.spire.doc.collections
Class DocumentSubsetCollection.SubSetEnumerator

java.lang.Object
  extended by com.spire.doc.collections.DocumentSubsetCollection.SubSetEnumerator
All Implemented Interfaces:
java.util.Iterator
Enclosing class:
DocumentSubsetCollection

public static class DocumentSubsetCollection.SubSetEnumerator
extends java.lang.Object
implements java.util.Iterator

Represents a internal enumerator for EntitySubSetCollection.


Constructor Summary
DocumentSubsetCollection.SubSetEnumerator(DocumentSubsetCollection enColl)
          Initializes a new instance of the class.
 
Method Summary
 boolean hasNext()
          Advances the enumerator to the next element of the collection.
 java.lang.Object next()
          Gets the current element in the collection.
 void reset()
          Sets the enumerator to its initial position, which is before the first element in the collection.
 

Constructor Detail

DocumentSubsetCollection.SubSetEnumerator

public DocumentSubsetCollection.SubSetEnumerator(DocumentSubsetCollection enColl)
Initializes a new instance of the class.

Parameters:
enColl - The entities collection.
Method Detail

next

public java.lang.Object next()
Gets the current element in the collection.

Returns:
The current element in the collection. The enumerator is positioned before the first element of the collection or after the last element.

hasNext

public boolean hasNext()
Advances the enumerator to the next element of the collection. true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.

Returns:
The collection was modified after the enumerator was created.

reset

public void reset()
Sets the enumerator to its initial position, which is before the first element in the collection. The collection was modified after the enumerator was created.