com.atlassian.jira.util.collect
Class IteratorEnumeration<E>
java.lang.Object
com.atlassian.jira.util.collect.IteratorEnumeration<E>
- Type Parameters:
E
- the type of element produced.
- All Implemented Interfaces:
- Enumeration<E>
public class IteratorEnumeration<E>
- extends Object
- implements Enumeration<E>
Adaptor for turning an Iterator
an into Enumeration
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fromIterator
public static <E> Enumeration<E> fromIterator(Iterator<? extends E> iterator)
fromIterable
public static <E> Enumeration<E> fromIterable(Iterable<? extends E> iterable)
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface Enumeration<E>
nextElement
public E nextElement()
- Specified by:
nextElement
in interface Enumeration<E>
Copyright © 2002-2012 Atlassian. All Rights Reserved.