protected class NamedObj.ContainedObjectsIterator
extends java.lang.Object
implements java.util.Iterator
Constructor and Description |
---|
ContainedObjectsIterator()
Create an iterator over all the contained objects.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Return true if the iteration has more elements.
|
java.lang.Object |
next()
Return the next element in the iteration.
|
void |
remove()
Throw a UnsupportedOperationException because remove() is not
supported.
|
public ContainedObjectsIterator()
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