|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.decorator.DecoratingRangeIterator
Range iterator that decorates all iterated objects. This class is used as the base class of the various decorating iterator utility classes used by the decorator layer.
All the method calls are delegated to the underlying iterator,
and best effort is made to decorate the objects returned by the
next()
method.
Constructor Summary | |
DecoratingRangeIterator(DecoratorFactory factory,
Session session,
RangeIterator iterator)
Creates a decorating iterator. |
Method Summary | |
long |
getPosition()
Returns the position of the underlying iterator. |
long |
getSize()
Returns the size of the underlying iterator. |
boolean |
hasNext()
Checks whether the underlying iterator has more elements. |
Object |
next()
Decorates and returns the next objects from the underlying iterator. |
void |
remove()
Removes the current object from the underlying iterator. |
void |
skip(long skipNum)
Advances the underlying iterator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DecoratingRangeIterator(DecoratorFactory factory, Session session, RangeIterator iterator)
factory
- decorator factorysession
- decorated sessioniterator
- underlying iteratorMethod Detail |
public void skip(long skipNum)
skip
in interface RangeIterator
skipNum
- number of elements to skipRangeIterator.skip(long)
public long getSize()
getSize
in interface RangeIterator
RangeIterator.getSize()
public long getPosition()
getPosition
in interface RangeIterator
RangeIterator.getPosition()
public boolean hasNext()
hasNext
in interface Iterator
true
if more elements exist,
false
otherwiseIterator.hasNext()
public Object next()
next
in interface Iterator
UnsupportedOperationException
- if the returned object can not
be decoratedIterator.next()
public void remove()
remove
in interface Iterator
Iterator.remove()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |