|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecore.util.EcoreUtil.ContentTreeIterator.ResourcesIterator
A special iterator that's tolerant of growth in the list of resources which can result from demand loading when traversing the tree of contents.
Field Summary | |
protected int |
index
The current index of the iterator. |
protected List |
resources
The resources to iterator over. |
Constructor Summary | |
EcoreUtil.ContentTreeIterator.ResourcesIterator(List resources)
Constructs an instance. |
Method Summary | |
boolean |
hasNext()
Returns whether there might be resources left by the time we next check. |
Object |
next()
Returns the next item, or null if there isn't one. |
boolean |
reallyHasNext()
Returns whether there really are any resources left. |
void |
remove()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected List resources
protected int index
Constructor Detail |
public EcoreUtil.ContentTreeIterator.ResourcesIterator(List resources)
resources
- the list of resources.Method Detail |
public boolean reallyHasNext()
public boolean hasNext()
true
when the index is equal to the size,
because the tree iterator will still be set to yield the last of the contents of the resource,
and accessing that may cause another resource to be loaded.
hasNext
in interface Iterator
public Object next()
null
if there isn't one.
next
in interface Iterator
null
if there isn't one.public void remove()
remove
in interface Iterator
UnsupportedOperationException
- always.
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |