Module openj9.dtfj

Class MonitorTableListIterator

  • All Implemented Interfaces:
    SlotIterator<com.ibm.j9ddr.vm29.pointer.generated.J9ObjectMonitorPointer>, Iterator<com.ibm.j9ddr.vm29.pointer.generated.J9ObjectMonitorPointer>

    public class MonitorTableListIterator
    extends Object
    implements SlotIterator<com.ibm.j9ddr.vm29.pointer.generated.J9ObjectMonitorPointer>
    Iterates over all the J9ObjectMonitor entries in all of the monitor tables in the monitor table list
    • Method Detail

      • 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<com.ibm.j9ddr.vm29.pointer.generated.J9ObjectMonitorPointer>
        Returns:
        true if the iteration has more elements
        See Also:
        SlotIterator
      • next

        public com.ibm.j9ddr.vm29.pointer.generated.J9ObjectMonitorPointer next()
        Description copied from interface: java.util.Iterator
        Returns the next element in the iteration.
        Specified by:
        next in interface Iterator<com.ibm.j9ddr.vm29.pointer.generated.J9ObjectMonitorPointer>
        Returns:
        the next element in the iteration
        See Also:
        SlotIterator