|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jdo.impl.fostore.FOStoreExtent.FOStoreExtentIterator
Iterates over the elements in a FOStoreExtent.
| Field Summary | |
private boolean |
closed
If false, then can get next object, otherwise next() always throws NoSuchElementException and hasNext() always returns false. |
private int |
index
Index into extent as a whole. |
private int |
instanceIndex
Index into instances. |
private java.util.ArrayList |
instances
Instances that have been retrieved from store. |
private int |
maxInstances
|
private java.lang.Object |
nextObject
|
private java.util.ArrayList |
oids
|
private int |
oidsIndex
Index into oids. |
private int |
size
Size of extent (number of instances + number of oids). |
| Constructor Summary | |
(package private) |
FOStoreExtent.FOStoreExtentIterator(FOStoreExtent extent)
|
| Method Summary | |
(package private) void |
close()
Disallow getting further objects from this iterator. |
private void |
getNext()
Get the next instance. |
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
Always throws UnsupportedOperationException. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.util.ArrayList instances
private java.util.ArrayList oids
private int maxInstances
private int instanceIndex
private int oidsIndex
private int index
private final int size
private boolean closed
private java.lang.Object nextObject
| Constructor Detail |
FOStoreExtent.FOStoreExtentIterator(FOStoreExtent extent)
| Method Detail |
public boolean hasNext()
hasNext in interface java.util.IteratorIterator.hasNext()public java.lang.Object next()
next in interface java.util.IteratorIterator.next()private void getNext()
public void remove()
remove in interface java.util.Iteratorvoid close()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||