|
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.IPPollRange.IPPollRangeGenerator
The purpose of the IPPollRangeGenerator class is to provide an Enumeration or Iterator object that can be returned by the encapsulating class. The class implements the new style Iterator interface, as well as the old style Enumeration to allow the developer freedom of choice when cycling over ranges.
Iterator
,
Enumeration
Field Summary | |
private java.util.Enumeration |
m_range
The range of address to generate. |
Constructor Summary | |
IPPollRange.IPPollRangeGenerator(java.util.Enumeration en)
Creates a poll range generator object. |
Method Summary | |
boolean |
hasMoreElements()
Returns true if the Enumeration described by this object still has more elements. |
boolean |
hasNext()
If there are more elements left in the iteration then a value of true is returned. |
java.lang.Object |
next()
Returns the next object in the iteration and increments the internal pointer. |
java.lang.Object |
nextElement()
Returns the next IPPollAddress in the enumeration. |
void |
remove()
The remove method is part of the Iterator interface and is optional. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.Enumeration m_range
The range of address to generate.
Constructor Detail |
public IPPollRange.IPPollRangeGenerator(java.util.Enumeration en)
Creates a poll range generator object.
en
- The Enumeration to use for address generation.Method Detail |
public boolean hasMoreElements()
Returns true if the Enumeration described by this object still has more elements.
hasMoreElements
in interface java.util.Enumeration
public java.lang.Object nextElement()
Returns the next IPPollAddress in the enumeration.
nextElement
in interface java.util.Enumeration
java.util.NoSuchElementException
- Thrown if there are no more elements in the iteration.public boolean hasNext()
If there are more elements left in the iteration then a value of true is returned. Else a false value is returned.
hasNext
in interface java.util.Iterator
public java.lang.Object next()
Returns the next object in the iteration and increments the internal pointer.
next
in interface java.util.Iterator
java.util.NoSuchElementException
- Thrown if there are no more elements in the iteration.public void remove()
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
- Always thrown by this method.
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |