org.apache.jackrabbit.mk.util
Class AbstractRangeIterator<T>

java.lang.Object
  extended by org.apache.jackrabbit.mk.util.AbstractRangeIterator<T>
All Implemented Interfaces:
Iterator<T>
Direct Known Subclasses:
RangeIterator

public abstract class AbstractRangeIterator<T>
extends Object
implements Iterator<T>


Field Summary
protected  Iterator<?> it
           
protected  int maxCount
           
 
Constructor Summary
AbstractRangeIterator(Iterator<?> it, int offset, int count)
           
 
Method Summary
protected abstract  T doNext()
           
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

it

protected final Iterator<?> it

maxCount

protected int maxCount
Constructor Detail

AbstractRangeIterator

public AbstractRangeIterator(Iterator<?> it,
                             int offset,
                             int count)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<T>

next

public T next()
Specified by:
next in interface Iterator<T>

remove

public void remove()
Specified by:
remove in interface Iterator<T>

doNext

protected abstract T doNext()


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.