Package org.apache.openjpa.lib.rop
Class ResultListIterator
- java.lang.Object
-
- org.apache.openjpa.lib.rop.ResultListIterator
-
- All Implemented Interfaces:
java.util.Iterator
,java.util.ListIterator
public class ResultListIterator extends java.lang.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(java.util.ListIterator li, ResultList rl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(E o)
ResultList
getResultList()
boolean
hasNext()
boolean
hasPrevious()
java.lang.Object
next()
int
nextIndex()
java.lang.Object
previous()
int
previousIndex()
void
remove()
void
set(E o)
-
-
-
Constructor Detail
-
ResultListIterator
public ResultListIterator(java.util.ListIterator li, ResultList rl)
-
-
Method Detail
-
getResultList
public ResultList getResultList()
-
hasNext
public boolean hasNext()
-
hasPrevious
public boolean hasPrevious()
-
next
public java.lang.Object next()
-
nextIndex
public int nextIndex()
-
previous
public java.lang.Object previous()
-
previousIndex
public int previousIndex()
-
add
public void add(E o)
- Specified by:
add
in interfacejava.util.ListIterator<E>
-
set
public void set(E o)
- Specified by:
set
in interfacejava.util.ListIterator<E>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<E>
- Specified by:
remove
in interfacejava.util.ListIterator<E>
-
-