Module openj9.dtfj

Class MemorySegmentIterator

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

public class MemorySegmentIterator extends Object implements Iterator
  • Field Details

    • MEMORY_TYPE_RAM_CLASS

      public static final int MEMORY_TYPE_RAM_CLASS
      See Also:
    • MEMORY_ALL_TYPES

      public static final int MEMORY_ALL_TYPES
      See Also:
    • segment

      protected com.ibm.j9ddr.vm29.pointer.generated.J9MemorySegmentPointer segment
    • flags

      protected final int flags
    • useClassloaderSegments

      protected final boolean useClassloaderSegments
  • Constructor Details

    • MemorySegmentIterator

      public MemorySegmentIterator(com.ibm.j9ddr.vm29.pointer.generated.J9MemorySegmentPointer source, int flags, boolean useClassloaderSegments)
    • MemorySegmentIterator

      public MemorySegmentIterator(com.ibm.j9ddr.vm29.pointer.generated.J9MemorySegmentListPointer source, int flags, boolean useClassloaderSegments)
  • 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