public class SCOListIterator extends Object implements ListIterator
Constructor and Description |
---|
SCOListIterator(List sco,
ObjectProvider sm,
List theDelegate,
ListStore theStore,
boolean useDelegate,
int startIndex)
Constructor taking the delegate or backing store, and any start index.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Object o) |
boolean |
hasNext() |
boolean |
hasPrevious() |
Object |
next() |
int |
nextIndex() |
Object |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(Object o) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public SCOListIterator(List sco, ObjectProvider sm, List theDelegate, ListStore theStore, boolean useDelegate, int startIndex)
sco
- Owner SCOsm
- ObjectProvider 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).public void add(Object o)
add
in interface ListIterator
public boolean hasNext()
hasNext
in interface Iterator
hasNext
in interface ListIterator
public boolean hasPrevious()
hasPrevious
in interface ListIterator
public Object next()
next
in interface Iterator
next
in interface ListIterator
public int nextIndex()
nextIndex
in interface ListIterator
public Object previous()
previous
in interface ListIterator
public int previousIndex()
previousIndex
in interface ListIterator
public void remove()
remove
in interface Iterator
remove
in interface ListIterator
public void set(Object o)
set
in interface ListIterator
Copyright © 2015. All rights reserved.