performancemonster.helpers
Class EnumerationAdapter

java.lang.Object
  extended by performancemonster.helpers.EnumerationAdapter
All Implemented Interfaces:
java.util.Enumeration

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

Helper class, turns an Iterator into an Enumeration, which is unfortunately required in some Swing code.


Constructor Summary
EnumerationAdapter(java.util.Iterator it)
          Wraps an Iterator into an Enumeration.
 
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 it)
Wraps an Iterator into an Enumeration.

Parameters:
it - The Iterator to wrap.
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration
See Also:
Enumeration.hasMoreElements()

nextElement

public java.lang.Object nextElement()
Specified by:
nextElement in interface java.util.Enumeration
See Also:
Enumeration.nextElement()


Copyright © 2005 Ole Friis. All Rights Reserved.