Class EnumerationOnIterator<E>

  • All Implemented Interfaces:
    java.util.Enumeration<E>

    public class EnumerationOnIterator<E>
    extends java.lang.Object
    implements java.util.Enumeration<E>
    Wrap an enumeration around an iterator
    Author:
    ludovic
    • Constructor Detail

      • EnumerationOnIterator

        public EnumerationOnIterator​(java.util.Iterator<E> iterator)
      • EnumerationOnIterator

        public EnumerationOnIterator​(java.util.Map<E,​?> map)
    • Method Detail

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