org.apache.openjpa.lib.rop
Class ResultListIterator

java.lang.Object
  extended by org.apache.openjpa.lib.rop.ResultListIterator
All Implemented Interfaces:
Iterator, ListIterator

public class ResultListIterator
extends Object

Wrapper iterator that will return false for hasNext() if the owning ResultList has been closed.

Author:
Marc Prud'hommeaux

Constructor Summary
ResultListIterator(ListIterator li, ResultList rl)
           
 
Method Summary
 void add(Object o)
           
 ResultList getResultList()
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 Object next()
           
 int nextIndex()
           
 Object previous()
           
 int previousIndex()
           
 void remove()
           
 void set(Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(Object o)
Specified by:
add in interface ListIterator

set

public void set(Object o)
Specified by:
set in interface ListIterator

remove

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


Copyright © 2006-2007 Apache Software Foundation. All Rights Reserved.