Class RangeIteratorDecorator
java.lang.Object
org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
- All Implemented Interfaces:
Iterator,RangeIterator
- Direct Known Subclasses:
AccessControlPolicyIteratorAdapter,EventIteratorAdapter,EventListenerIteratorAdapter,NodeIteratorAdapter,NodeTypeIteratorAdapter,PrincipalIteratorAdapter,PropertyIteratorAdapter,RowIteratorAdapter,VersionIteratorAdapter
Base class for decorating
RangeIterators.-
Method Summary
Modifier and TypeMethodDescriptionlongDelegated to the underlying iterator.longgetSize()Delegated to the underlying iterator.booleanhasNext()Delegated to the underlying iterator.next()Delegated to the underlying iterator.voidremove()Delegated to the underlying iterator.voidskip(long n) Delegated to the underlying iterator.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Method Details
-
getPosition
public long getPosition()Delegated to the underlying iterator.- Specified by:
getPositionin interfaceRangeIterator- Returns:
- iterator position
-
getSize
public long getSize()Delegated to the underlying iterator.- Specified by:
getSizein interfaceRangeIterator- Returns:
- iterator size
-
skip
Delegated to the underlying iterator.- Specified by:
skipin interfaceRangeIterator- Parameters:
n- number of elements to skip- Throws:
NoSuchElementException- if skipped past the last element
-
hasNext
public boolean hasNext()Delegated to the underlying iterator. -
next
Delegated to the underlying iterator.- Specified by:
nextin interfaceIterator- Returns:
- next element
- Throws:
NoSuchElementException- if there are no more elements
-
remove
Delegated to the underlying iterator.- Specified by:
removein interfaceIterator- Throws:
UnsupportedOperationException- if the operation is not supportedIllegalStateException- if there is no element to be removed
-