|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.discovery.IPGenerator.IteratorChain
This class is used to chain a set of common iterators together so that when on iterator is exhausted the next one is polled. This allows a set of iterators to be treated as a single iterator.
Field Summary | |
private java.util.List |
m_iterators
The chained list of iterators. |
Constructor Summary | |
(package private) |
IPGenerator.IteratorChain()
Constructs a new iterator chain |
Method Summary | |
(package private) void |
add(java.util.Iterator iter)
Adds an iterator to the chain |
boolean |
hasNext()
This method returns true if an iterator in the chain has a next element. |
java.lang.Object |
next()
This method returns the next element in the iterator chain. |
void |
remove()
Removes the current element from the iterator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.List m_iterators
Constructor Detail |
IPGenerator.IteratorChain()
Method Detail |
void add(java.util.Iterator iter)
iter
- The iterator to add.public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
java.util.NoSuchElementException
- Thrown if there are no more elements.public void remove()
UnsupportedOperationException
.
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
- Always Thrown.
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |