Intel

Developer Zone

Iterator

com.intel.langutil

Interface Iterator<E>



  • public interface Iterator<E>
    This class provides an interface for containers iteration.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      E getNext()
      Returns the next element in the container
      boolean hasNext()
      Returns whether the container has more elements
    • Method Detail

      • hasNext

        boolean hasNext()
        Returns whether the container has more elements
        Returns:
        returns whether the container has more elements
      • getNext

        E getNext()
        Returns the next element in the container
        Returns:
        returns the next element in the container