Package org.datanucleus.store.types
Class SCOListIterator<E>
- java.lang.Object
-
- org.datanucleus.store.types.SCOListIterator<E>
-
- Type Parameters:
E- Type of element in the List
- All Implemented Interfaces:
java.util.Iterator<E>,java.util.ListIterator<E>
public class SCOListIterator<E> extends java.lang.Object implements java.util.ListIterator<E>An iterator for a SCO List object. Operates from either a delegate or a backing store, and provides iteration through the objects.
-
-
Constructor Summary
Constructors Constructor Description SCOListIterator(java.util.List<E> sco, DNStateManager sm, java.util.List<E> theDelegate, ListStore<E> theStore, boolean useDelegate, int startIndex)Constructor taking the delegate or backing store, and any start index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(E o)booleanhasNext()booleanhasPrevious()Enext()intnextIndex()Eprevious()intpreviousIndex()voidremove()voidset(E o)
-
-
-
Constructor Detail
-
SCOListIterator
public SCOListIterator(java.util.List<E> sco, DNStateManager sm, java.util.List<E> theDelegate, ListStore<E> theStore, boolean useDelegate, int startIndex)
Constructor taking the delegate or backing store, and any start index.- Parameters:
sco- Owner SCOsm- StateManager of SCO List to iteratetheDelegate- The delegate listtheStore- The backing store (connected to the DB)useDelegate- whether to use a delegatestartIndex- The start index position (any value below 0 will mean start at index 0).
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPreviousin interfacejava.util.ListIterator<E>
-
next
public E next()
-
nextIndex
public int nextIndex()
- Specified by:
nextIndexin interfacejava.util.ListIterator<E>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndexin interfacejava.util.ListIterator<E>
-
remove
public void remove()
-
-