|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.ecore.util.EcoreUtil.ContentTreeIterator.ResourcesIterator
protected static class 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 java.util.List<? extends Resource> |
resources
The resources to iterator over. |
Constructor Summary | |
---|---|
EcoreUtil.ContentTreeIterator.ResourcesIterator(java.util.List<? extends Resource> resources)
Constructs an instance. |
Method Summary | |
---|---|
boolean |
hasNext()
Returns whether there might be resources left by the time we next check. |
Resource |
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 java.util.List<? extends Resource> resources
protected int index
Constructor Detail |
---|
public EcoreUtil.ContentTreeIterator.ResourcesIterator(java.util.List<? extends Resource> 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 java.util.Iterator<Resource>
public Resource next()
null
if there isn't one.
next
in interface java.util.Iterator<Resource>
null
if there isn't one.public void remove()
remove
in interface java.util.Iterator<Resource>
java.lang.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 |