Class EnumerationIterator<E>

java.lang.Object
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 Details

    • 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>