Copyright© 2008-2022 Sitevision AB, all rights reserved.
public interface RangeIterator extends Iterator
Iterator
with the skip
,
getSize
and getPosition
methods. The base interface
of all type-specific iterators in the javax.jcr
and its sub
packages.Modifier and Type | Method and Description |
---|---|
long |
getPosition()
Returns the current position within the iterator.
|
long |
getSize()
Returns the total number of of items available through this iterator.
|
void |
skip(long skipNum)
Skip a number of elements in the iterator.
|
forEachRemaining, hasNext, next, remove
void skip(long skipNum)
Sitevision note: Unsupported operation
skipNum
- the non-negative number of elements to skipNoSuchElementException
- if skipped past the last element
in the iterator.long getSize()
N
, N.getNodes().getSize()
returns the number of child nodes of N
visible through the
current Session
. In some implementations precise information
about the number of elements may not be available. In such cases this
method must return -1.
Sitevision note: Returns -1 as of Sitevision 3.6. Denoted as 'Unsupported operation' in prior releases (i.e. throws UnsupportedOperationException).
long 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.
Sitevision note: Unsupported operation
Sitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.