Modifier and Type | Method and Description |
---|---|
int |
getPosition()
Returns the current position within the iterator.
|
void |
skip(int skipNum)
this method skips the first
skipNum documents in the iterator. |
forEachRemaining, hasNext, next, remove
void skip(int skipNum)
skipNum
documents in the iterator. When skipNum is large enough to skip past the last
HippoDocumentBean, then no error will be thrown, but this method returns. The Iterator.hasNext()
will then return falseskipNum
- int getPosition()
next
call.
Note that this method does not check if there is a next element,
i.e. an empty iterator will always return 0.Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.