com.atlassian.jira.util.collect
Class EnumerationIterator<E>

java.lang.Object
  extended by com.atlassian.jira.util.collect.EnumerationIterator<E>
Type Parameters:
E - the type of element produced.
All Implemented Interfaces:
Iterator<E>

public class EnumerationIterator<E>
extends Object
implements Iterator<E>

Adaptor for turning an Enumeration into an Iterator.


Method Summary
static
<E> Iterator<E>
fromEnumeration(Enumeration<? extends E> enumeration)
           
 boolean hasNext()
           
 E next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fromEnumeration

public static <E> Iterator<E> fromEnumeration(Enumeration<? extends E> enumeration)

hasNext

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

next

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

remove

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.