java.lang.Object
com.ibm.j9ddr.vm29.j9.Pool<StructType>
com.ibm.j9ddr.vm29.j9.Pool_29_V0<StructType>
- All Implemented Interfaces:
SlotIterator<StructType>
,Iterator<StructType>
public class Pool_29_V0<StructType extends DataType>
extends Pool<StructType>
implements SlotIterator<StructType>
-
Field Summary
Fields declared in class com.ibm.j9ddr.vm29.j9.Pool
elementSize, logger, pool, structType
-
Constructor Summary
ModifierConstructorDescriptionprotected
Pool_29_V0
(com.ibm.j9ddr.vm29.pointer.generated.J9PoolPointer structure, Class<T> structType, boolean isInline) -
Method Summary
Modifier and TypeMethodDescriptionlong
capacity()
Returns the total capacity of a poolboolean
hasNext()
Returnstrue
if the iteration has more elements.boolean
includesElement
(StructType anElement) See if an element is currently allocated from a pool.iterator()
Returns an iterator over the elements in the poolnext()
Returns the next element in the iteration.long
Returns the number of elements in a given pool.Methods declared in class com.ibm.j9ddr.vm29.j9.Pool
fromJ9Pool, fromJ9Pool
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
-
Pool_29_V0
protected Pool_29_V0(com.ibm.j9ddr.vm29.pointer.generated.J9PoolPointer structure, Class<T> structType, boolean isInline) throws CorruptDataException - Throws:
CorruptDataException
-
-
Method Details
-
includesElement
Description copied from class:Pool
See if an element is currently allocated from a pool.- Specified by:
includesElement
in classPool<StructType extends DataType>
- Returns:
- boolean - true if the element is allocated, false otherwise
-
iterator
Description copied from class:Pool
Returns an iterator over the elements in the pool- Specified by:
iterator
in classPool<StructType extends DataType>
- Returns:
- an Iterator
-
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.)- Specified by:
hasNext
in interfaceIterator<StructType extends DataType>
- Returns:
true
if the iteration has more elements
-
next
Description copied from interface:java.util.Iterator
Returns the next element in the iteration.- Specified by:
next
in interfaceIterator<StructType extends DataType>
- Returns:
- the next element in the iteration
-
nextAddress
- Specified by:
nextAddress
in interfaceSlotIterator<StructType extends DataType>
-
numElements
public long numElements()Description copied from class:Pool
Returns the number of elements in a given pool.- Specified by:
numElements
in classPool<StructType extends DataType>
- Returns:
- the number of elements in the pool
-
capacity
public long capacity()Description copied from class:Pool
Returns the total capacity of a pool- Specified by:
capacity
in classPool<StructType extends DataType>
- Returns:
- the capacity of the pool
-