Module openj9.dtfj

Class SlidingIterator

java.lang.Object
com.ibm.j9ddr.vm29.view.dtfj.java.j9.SlidingIterator
All Implemented Interfaces:
Iterator

public class SlidingIterator extends Object implements Iterator
  • Constructor Details

    • SlidingIterator

      public SlidingIterator(ArrayList src, int start, int end)
  • Method Details

    • hasNext

      public boolean hasNext()
      Description copied from interface: java.util.Iterator
      Returns true if the iteration has more elements. (In other words, returns true if Iterator.next() would return an element rather than throwing an exception.)
      Specified by:
      hasNext in interface Iterator
      Returns:
      true if the iteration has more elements
    • next

      public Object next()
      Description copied from interface: java.util.Iterator
      Returns the next element in the iteration.
      Specified by:
      next in interface Iterator
      Returns:
      the next element in the iteration