Package dsa.impl

Class ListIterator<T>

java.lang.Object
dsa.impl.ListIterator<T>
Type Parameters:
T - The generic type of the elements stored in the list.
All Implemented Interfaces:
Iterator<T>

public class ListIterator<T> extends Object implements Iterator<T>
Iterate over the elements of a IList.
  • Constructor Details

    • ListIterator

      public ListIterator(IList<T> list)
  • Method Details

    • hasNext

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

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