|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The WCM API typepublic interface DocumentIdIterator<T extends Document>
DocumentIdIterator
iterates over DocumentId
objects.
All objects returned by the next()
method are of type
DocumentId
.
Note. This iterator does NOT support the remove()
operation.
Method Summary | |
---|---|
int |
getCount()
Deprecated. The value returned may not be accurate for large iterators, and may be unknown. The the following code should be used instead: while (iter.hasNext()) {count = count + 1;} |
boolean |
hasNext()
Returns true if the iteration has more elements. |
DocumentId<T> |
next()
Returns the next element in the iteration. |
DocumentId<T> |
nextId()
Deprecated. Use next() . Since this class has been generified, the two
methods are identical. |
void |
remove()
This method is not implemented. |
Method Detail |
---|
boolean hasNext()
next()
would return an element
rather than throwing an exception.)
hasNext
in interface java.util.Iterator<DocumentId<T extends Document>>
DocumentId<T> next()
DocumentId
.
The common practice is to cast the object returned by
next()
to a DocumentId
.
The hasNext()
method should be called first to ensure
there is a next element in the iteration, otherwise an exception
may be thrown.
next
in interface java.util.Iterator<DocumentId<T extends Document>>
java.util.NoSuchElementException
- if the iteration has no more elements.@Deprecated DocumentId<T> nextId()
next()
. Since this class has been generified, the two
methods are identical.
DocumentId
in the iteration.
The hasNext()
method should be called first to ensure
there is a next element in the iteration, otherwise an exception
may be thrown.
DocumentId
in the iteration.
java.util.NoSuchElementException
- if the iteration has no more elements.void remove()
UnsupportedOperationException
being thrown.
remove
in interface java.util.Iterator<DocumentId<T extends Document>>
java.lang.UnsupportedOperationException
- each time the method is called@Deprecated int getCount()
while (iter.hasNext()) {count = count + 1;}
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |