Package org.apache.openjpa.lib.rop
Class ResultListIterator
- java.lang.Object
-
- org.apache.openjpa.lib.rop.ResultListIterator
-
- All Implemented Interfaces:
Iterator,ListIterator
public class ResultListIterator extends Object
Wrapper iterator that will return false forhasNext()if the owning ResultList has been closed.- Author:
- Marc Prud'hommeaux
-
-
Constructor Summary
Constructors Constructor Description ResultListIterator(ListIterator li, ResultList rl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(E o)ResultListgetResultList()booleanhasNext()booleanhasPrevious()Objectnext()intnextIndex()Objectprevious()intpreviousIndex()voidremove()voidset(E o)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
ResultListIterator
public ResultListIterator(ListIterator li, ResultList rl)
-
-
Method Detail
-
getResultList
public ResultList getResultList()
-
hasNext
public boolean hasNext()
-
hasPrevious
public boolean hasPrevious()
-
next
public Object next()
-
nextIndex
public int nextIndex()
-
previous
public Object previous()
-
previousIndex
public int previousIndex()
-
add
public void add(E o)
- Specified by:
addin interfaceListIterator<E>
-
set
public void set(E o)
- Specified by:
setin interfaceListIterator<E>
-
remove
public void remove()
- Specified by:
removein interfaceIterator<E>- Specified by:
removein interfaceListIterator<E>
-
-