Module org.snmp4j

Class EnumerationIterator<E>

  • All Implemented Interfaces:
    java.util.Iterator<E>

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

      Constructors 
      Constructor Description
      EnumerationIterator​(java.util.Enumeration<E> e)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      Returns true 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 interface java.util.Iterator

        forEachRemaining
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EnumerationIterator

        public EnumerationIterator​(java.util.Enumeration<E> e)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Returns true if the iteration has more elements.
        Specified by:
        hasNext in interface java.util.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 java.util.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 java.util.Iterator<E>