protected static class EcoreUtil.ContentTreeIterator.ResourcesIterator extends java.lang.Object implements java.util.Iterator<Resource>
Modifier and Type | Field and Description |
---|---|
protected int |
index
The current index of the iterator.
|
protected java.util.List<? extends Resource> |
resources
The resources to iterator over.
|
Constructor and Description |
---|
EcoreUtil.ContentTreeIterator.ResourcesIterator(java.util.List<? extends Resource> resources)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
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() |
protected java.util.List<? extends Resource> resources
protected int index
public EcoreUtil.ContentTreeIterator.ResourcesIterator(java.util.List<? extends Resource> resources)
resources
- the list of resources.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.