info.magnolia.jcr.iterator
Class ChainedNodeIterator

java.lang.Object
  extended by info.magnolia.jcr.iterator.ChainedNodeIterator
All Implemented Interfaces:
Iterator, javax.jcr.NodeIterator, javax.jcr.RangeIterator

public class ChainedNodeIterator
extends Object
implements javax.jcr.NodeIterator

An implementation of NodeIterator which will chain several iterators making them behave like one.


Constructor Summary
ChainedNodeIterator(List<javax.jcr.NodeIterator> iterators)
           
ChainedNodeIterator(javax.jcr.NodeIterator... iterators)
           
 
Method Summary
 long getPosition()
           
 long getSize()
           
 boolean hasNext()
           
 Object next()
           
 javax.jcr.Node nextNode()
           
 void remove()
           
 void skip(long skipNum)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainedNodeIterator

public ChainedNodeIterator(List<javax.jcr.NodeIterator> iterators)

ChainedNodeIterator

public ChainedNodeIterator(javax.jcr.NodeIterator... iterators)
Method Detail

skip

public void skip(long skipNum)
Specified by:
skip in interface javax.jcr.RangeIterator

getSize

public long getSize()
Specified by:
getSize in interface javax.jcr.RangeIterator

getPosition

public long getPosition()
Specified by:
getPosition in interface javax.jcr.RangeIterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator

nextNode

public javax.jcr.Node nextNode()
Specified by:
nextNode in interface javax.jcr.NodeIterator


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.