Class RangeIteratorDecorator
- java.lang.Object
-
- org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
-
- All Implemented Interfaces:
java.util.Iterator,RangeIterator
- Direct Known Subclasses:
AccessControlPolicyIteratorAdapter,EventIteratorAdapter,EventListenerIteratorAdapter,NodeIteratorAdapter,NodeTypeIteratorAdapter,PrincipalIteratorAdapter,PropertyIteratorAdapter,RowIteratorAdapter,VersionIteratorAdapter
public class RangeIteratorDecorator extends java.lang.Object implements RangeIterator
Base class for decoratingRangeIterators.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetPosition()Delegated to the underlying iterator.longgetSize()Delegated to the underlying iterator.booleanhasNext()Delegated to the underlying iterator.java.lang.Objectnext()Delegated to the underlying iterator.voidremove()Delegated to the underlying iterator.voidskip(long n)Delegated to the underlying iterator.
-
-
-
Method Detail
-
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
public void skip(long n) throws java.util.NoSuchElementExceptionDelegated to the underlying iterator.- Specified by:
skipin interfaceRangeIterator- Parameters:
n- number of elements to skip- Throws:
java.util.NoSuchElementException- if skipped past the last element
-
hasNext
public boolean hasNext()
Delegated to the underlying iterator.- Specified by:
hasNextin interfacejava.util.Iterator- Returns:
trueif the iterator has more elements,falseotherwise
-
next
public java.lang.Object next() throws java.util.NoSuchElementExceptionDelegated to the underlying iterator.- Specified by:
nextin interfacejava.util.Iterator- Returns:
- next element
- Throws:
java.util.NoSuchElementException- if there are no more elements
-
remove
public void remove() throws java.lang.UnsupportedOperationException, java.lang.IllegalStateExceptionDelegated to the underlying iterator.- Specified by:
removein interfacejava.util.Iterator- Throws:
java.lang.UnsupportedOperationException- if the operation is not supportedjava.lang.IllegalStateException- if there is no element to be removed
-
-