Module openj9.dtfj

Class MonitorIterator

java.lang.Object
com.ibm.j9ddr.vm29.j9.walkers.MonitorIterator
All Implemented Interfaces:
Iterator

public class MonitorIterator extends Object implements Iterator
The monitor iterator walks over the monitor table to get the system and inflated object monitors. It then walks the heap in order to find any flat object monitors.
  • Constructor Details

  • 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