Interface EnumerationIterator<E>

    • Method Detail

      • hasMoreElements

        default boolean hasMoreElements()
        Determine if there are more elements to iterate over in the direction of this iterator.
        Specified by:
        hasMoreElements in interface Enumeration<E>
        Returns:
        true if there are more elements, false otherwise
      • nextElement

        default E nextElement()
        Get the next element in the direction of this iterator.
        Specified by:
        nextElement in interface Enumeration<E>
        Returns:
        the next element
      • over

        static <E> EnumerationIterator<E> over​(E item)
        Get an enumeration iterator over one element.
        Type Parameters:
        E - the element type
        Parameters:
        item - the element
        Returns:
        the enumeration iterator