Module openj9.dtfj

Class GCSegmentIterator

All Implemented Interfaces:
SlotIterator, Iterator

public class GCSegmentIterator extends GCIterator
  • Constructor Details

  • Method Details

    • fromJ9MemorySegmentList

      public static GCSegmentIterator fromJ9MemorySegmentList(com.ibm.j9ddr.vm29.pointer.generated.J9MemorySegmentListPointer list, long flags) throws CorruptDataException
      Factory method to construct an appropriate segment iterator.
      Parameters:
      list - the J9MemorySegmentList to iterate
      flags - only iterate segments that match these flags
      Returns:
      an instance of GCSegmentIterator
      Throws:
      CorruptDataException
    • 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.)
      Returns:
      true if the iteration has more elements
    • next

      public com.ibm.j9ddr.vm29.pointer.generated.J9MemorySegmentPointer next()
      Description copied from interface: java.util.Iterator
      Returns the next element in the iteration.
      Returns:
      the next element in the iteration
    • nextAddress

      public VoidPointer nextAddress()