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

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

public class IteratorEnumeration<E>
extends java.lang.Object
implements java.util.Enumeration<E>

Adaptor for turning an Iterator an into Enumeration.


Method Summary
static
<E> java.util.Enumeration<E>
fromIterator(java.util.Iterator<? extends E> iterator)
           
 boolean hasMoreElements()
           
 E nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fromIterator

public static <E> java.util.Enumeration<E> fromIterator(java.util.Iterator<? extends E> iterator)

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration<E>

nextElement

public E nextElement()
Specified by:
nextElement in interface java.util.Enumeration<E>


Copyright © 2002-2011 Atlassian. All Rights Reserved.