de.matthias_burbach.mosaique.core.util
Class EnumerationAdapter

java.lang.Object
  extended byde.matthias_burbach.mosaique.core.util.EnumerationAdapter
All Implemented Interfaces:
java.util.Enumeration

public class EnumerationAdapter
extends java.lang.Object
implements java.util.Enumeration

Transforms a Iterator to a Enumeration.

Author:
Matthias Burbach

Constructor Summary
EnumerationAdapter(java.util.Iterator iterator)
           
 
Method Summary
 boolean hasMoreElements()
          
 java.lang.Object nextElement()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumerationAdapter

public EnumerationAdapter(java.util.Iterator iterator)
Parameters:
iterator - The iterator to adapt.
Method Detail

hasMoreElements

public boolean hasMoreElements()

Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()

Specified by:
nextElement in interface java.util.Enumeration


Copyright © 2005-2006 . All Rights Reserved.