Class CollectionTools.EnumerationIterator<T>

    • Field Detail

      • enumeration

        protected final Enumeration<T> enumeration
        The wrapped enumeration.
    • Constructor Detail

      • EnumerationIterator

        public EnumerationIterator​(Enumeration<T> enumeration)
        Creates a new Iterator for the designated Enumeration.
        Parameters:
        enumeration - The Enumeration which to wrap in an Iterator.
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<T>
      • next

        public T next()
        Specified by:
        next in interface Iterator<T>