CubeTwister 2.0alpha142 2012-02-11

ch.randelshofer.util
Class EnumIterator<T>

java.lang.Object
  extended by ch.randelshofer.util.EnumIterator<T>
All Implemented Interfaces:
java.util.Iterator<T>

public class EnumIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>

Wraps an Enumeration with the Iterator interface.

Version:
1.2 2010-01-03 Generified.
1.0 2001-10-08
Author:
Werni Randelshofer

Constructor Summary
EnumIterator(java.util.Enumeration<T> e)
          Creates new EnumIterator
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
          Throws always UnsupportedOperationException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumIterator

public EnumIterator(java.util.Enumeration<T> e)
Creates new EnumIterator

Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<T>

next

public T next()
Specified by:
next in interface java.util.Iterator<T>

remove

public void remove()
Throws always UnsupportedOperationException.

Specified by:
remove in interface java.util.Iterator<T>
Throws:
java.lang.UnsupportedOperationException

(c) Werner Randelshofer.
All rights reserved.