org.snmp4j.util
Class EnumerationIterator<E>

java.lang.Object
  extended by org.snmp4j.util.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
EnumerationIterator(java.util.Enumeration<E> e)
           
 
Method Summary
 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 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>

Copyright 2005-2011 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.