- java.lang.Object
-
- org.snmp4j.util.EnumerationIterator<E>
-
- All Implemented Interfaces:
Iterator<E>
public class EnumerationIterator<E> extends Object implements Iterator<E>
TheEnumerationIterator
provides an iterator from anEnumeration
.- Since:
- 1.6.1
- Version:
- 2.0
- Author:
- Frank Fock
-
-
Constructor Summary
Constructors Constructor Description EnumerationIterator(Enumeration<E> e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Returnstrue
if the iteration has more elements.E
next()
Returns the next element in the iteration.void
remove()
This method is not supported for enumerations.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
EnumerationIterator
public EnumerationIterator(Enumeration<E> e)
-
-
Method Detail
-
hasNext
public boolean hasNext()
Returnstrue
if the iteration has more elements.
-
next
public E next()
Returns the next element in the iteration.
-
-