Module org.snmp4j

Class EnumerationIterator<E>

java.lang.Object
org.snmp4j.util.EnumerationIterator<E>
All Implemented Interfaces:
Iterator<E>

public class EnumerationIterator<E> extends Object implements Iterator<E>
The EnumerationIterator provides an iterator from an Enumeration.
Since:
1.6.1
Version:
2.0
Author:
Frank Fock
  • Constructor Details

    • EnumerationIterator

      public EnumerationIterator(Enumeration<E> e)
  • Method Details

    • hasNext

      public boolean hasNext()
      Returns true if the iteration has more elements.
      Specified by:
      hasNext in interface Iterator<E>
      Returns:
      true if the iterator has more elements.
    • next

      public E next()
      Returns the next element in the iteration.
      Specified by:
      next in interface Iterator<E>
      Returns:
      the next element in the iteration.
    • remove

      public void remove()
      This method is not supported for enumerations.
      Specified by:
      remove in interface Iterator<E>