|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.actor.gt.data.CombinedCollection.Iterator
private class CombinedCollection.Iterator
The iterator for iterating elements in this collection.
Red (tfeng) |
Yellow (tfeng) |
Field Summary | |
---|---|
private java.util.Iterator<java.util.Collection<? extends E>> |
_collectionIterator
The iterator to iterate the component collections. |
private java.util.Iterator<? extends E> |
_elementIterator
The iterator to iterate the elements of the chosen component collection. |
Constructor Summary | |
---|---|
CombinedCollection.Iterator()
Construct an iterator. |
Method Summary | |
---|---|
private void |
_ensureNext()
Move the pointer to the next element in the collection. |
boolean |
hasNext()
Test whether there is a next element. |
E |
next()
Return the next element, if any, or throw a NoSuchElementException if the end of the collection has already
been reached. |
void |
remove()
Throw a runtime exception because removal is not supported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Iterator<java.util.Collection<? extends E>> _collectionIterator
private java.util.Iterator<? extends E> _elementIterator
Constructor Detail |
---|
CombinedCollection.Iterator()
Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<E>
public E next()
NoSuchElementException
if the end of the collection has already
been reached.
next
in interface java.util.Iterator<E>
public void remove()
remove
in interface java.util.Iterator<E>
private void _ensureNext()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |