com.atlassian.user.util
Class EnumerationAdaptor<T>

java.lang.Object
  extended by com.atlassian.user.util.EnumerationAdaptor<T>
All Implemented Interfaces:
Iterator<T>

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

Wraps an enumeration with an iterator interface


Constructor Summary
EnumerationAdaptor(Enumeration<T> enumeration)
           
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumerationAdaptor

public EnumerationAdaptor(Enumeration<T> enumeration)
Method Detail

remove

public void remove()
Specified by:
remove in interface Iterator<T>

hasNext

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

next

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


Copyright © 2005-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.