Class GCSegmentIterator
java.lang.Object
com.ibm.j9ddr.vm29.j9.gc.GCBase
com.ibm.j9ddr.vm29.j9.gc.GCIterator
com.ibm.j9ddr.vm29.j9.gc.GCSegmentIterator
- All Implemented Interfaces:
SlotIterator
,Iterator
-
Constructor Summary
ModifierConstructorDescriptionprotected
GCSegmentIterator
(com.ibm.j9ddr.vm29.pointer.generated.J9MemorySegmentListPointer list, long flags) -
Method Summary
Modifier and TypeMethodDescriptionstatic GCSegmentIterator
fromJ9MemorySegmentList
(com.ibm.j9ddr.vm29.pointer.generated.J9MemorySegmentListPointer list, long flags) Factory method to construct an appropriate segment iterator.boolean
hasNext()
Returnstrue
if the iteration has more elements.com.ibm.j9ddr.vm29.pointer.generated.J9MemorySegmentPointer
next()
Returns the next element in the iteration.Methods declared in class com.ibm.j9ddr.vm29.j9.gc.GCBase
getExtensions, getJavaVM
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
GCSegmentIterator
protected GCSegmentIterator(com.ibm.j9ddr.vm29.pointer.generated.J9MemorySegmentListPointer list, long flags) throws CorruptDataException - Throws:
CorruptDataException
-
-
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 iterateflags
- 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
Returnstrue
if the iteration has more elements. (In other words, returnstrue
ifIterator.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
-