|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.genclass.PIndexedElemIterator
public class PIndexedElemIterator
This class is an implementation of the iterator interface. It iterates over an inner iterator which the elements are GenClassElement. The main roles of this iterator implementation are - to skip the GenClassElement marked as deleted - to resolve PName references if the element are persistent object
Field Summary | |
---|---|
protected java.util.Iterator |
iter
Is the inner iterator over PIndexexElem instances |
protected org.objectweb.util.monolog.api.Logger |
logger
|
protected GenClassElement |
next
is the next element which has not been deleted |
protected boolean |
nextComputed
indicates if the next element has been computed |
protected POManagerItf |
pm
is the persistence manager used to resolve the PName into reference. |
protected StateItf |
sa
is the object to synchronize if an element must be removed |
Constructor Summary | |
---|---|
PIndexedElemIterator(java.util.Collection _elements,
StateItf _sa,
POManagerItf pm,
org.objectweb.util.monolog.api.Logger l)
|
Method Summary | |
---|---|
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Iterator iter
protected GenClassElement next
protected boolean nextComputed
protected StateItf sa
protected POManagerItf pm
protected org.objectweb.util.monolog.api.Logger logger
Constructor Detail |
---|
public PIndexedElemIterator(java.util.Collection _elements, StateItf _sa, POManagerItf pm, org.objectweb.util.monolog.api.Logger l)
Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |