com.ibm.workplace.wcm.api.query
Interface ResultIterator<E>

Type Parameters:
E - The type of the elements in the iterator
All Superinterfaces:
java.util.Iterator<E>

public interface ResultIterator<E>
extends java.util.Iterator<E>

The ResultIterator is an iterator of WCM Query API results.

Since:
7.0

Method Summary
 int getSize()
          Deprecated. The value returned may not be accurate for large iterators, and may be unknown. Please use the following code instead. while (iter.hasNext()) size = size + 1;
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

getSize

@Deprecated
int getSize()
Deprecated. The value returned may not be accurate for large iterators, and may be unknown. Please use the following code instead. while (iter.hasNext()) size = size + 1;

Get the number of elements in the iterator. If the count is unknown for this iterator, -1 will be returned.

Returns:
the number of elements in the iterator