Class CollectionUtil.IteratorEnumerationAdapter<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    java.util.Enumeration<T>
    Enclosing class:
    CollectionUtil

    private static class CollectionUtil.IteratorEnumerationAdapter<T>
    extends java.lang.Object
    implements java.util.Enumeration<T>
    Wraps an Enumeration around an Iterator
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Iterator<T> iterator  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasMoreElements()  
      T nextElement()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Enumeration

        asIterator
    • Field Detail

      • iterator

        private java.util.Iterator<T> iterator
    • Constructor Detail

      • IteratorEnumerationAdapter

        public IteratorEnumerationAdapter​(java.util.Iterator<T> iter)
    • Method Detail

      • hasMoreElements

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

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