|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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. Please use the following code instead. while (iter.hasNext()) count = count + 1; |
boolean |
hasNext()
Returns true if the iteration has more elements. |
java.lang.Object |
next()
Returns the next element in the interation. |
com.ibm.workplace.wcm.api.DocumentId |
nextId()
Returns the next DocumentId in the interation. |
void |
remove()
This method is not implemented. |
| Method Detail |
public boolean hasNext()
next() would return an element
rather than throwing an exception.)
hasNext in interface java.util.Iteratorpublic java.lang.Object 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.Iteratorjava.util.NoSuchElementException - if the iteration has no more elements.public com.ibm.workplace.wcm.api.DocumentId nextId()
DocumentId in the interation.
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.public void remove()
UnsupportedOperationException being thrown.
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException - each time the method is calledpublic int getCount()
while (iter.hasNext()) count = count + 1;
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||