net.spy.util
Class Enumeriterator<T>

java.lang.Object
  extended by net.spy.util.Enumeriterator<T>
All Implemented Interfaces:
Iterator<T>

public class Enumeriterator<T>
extends Object
implements Iterator<T>

Wrap an Enumeration to provide an Iterator interface.


Constructor Summary
Enumeriterator(Enumeration<T> src)
          Get an instance of Enumeriterator.
 
Method Summary
 boolean hasNext()
          Determine whether this Iterator has more elements.
 T next()
          Get the next object.
 void remove()
          NOT IMPLEMENTED.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Enumeriterator

public Enumeriterator(Enumeration<T> src)
Get an instance of Enumeriterator.

Method Detail

hasNext

public boolean hasNext()
Determine whether this Iterator has more elements.

Specified by:
hasNext in interface Iterator<T>
Returns:
true if another call to next() will return an object

next

public T next()
Get the next object.

Specified by:
next in interface Iterator<T>
Returns:
the next Object

remove

public void remove()
NOT IMPLEMENTED.

Specified by:
remove in interface Iterator<T>


Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.