Package 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>
Adaptor for turning an
Iterator an into Enumeration.-
Method Summary
Modifier and TypeMethodDescriptionstatic <E> Enumeration<E> fromIterable(Iterable<? extends E> iterable) static <E> Enumeration<E> fromIterator(Iterator<? extends E> iterator) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Enumeration
asIterator
-
Method Details
-
fromIterator
-
fromIterable
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElementsin interfaceEnumeration<E>
-
nextElement
- Specified by:
nextElementin interfaceEnumeration<E>
-