Class ExtractedCollection
- java.lang.Object
-
- org.eclipse.mat.inspections.collectionextract.AbstractExtractedCollection<IObject,ICollectionExtractor>
-
- org.eclipse.mat.inspections.collectionextract.ExtractedCollection
-
public class ExtractedCollection extends AbstractExtractedCollection<IObject,ICollectionExtractor>
An class representing a collection extracted from the heap. It provides convenience methods for querying certain properties of the collection (e.g. size) and for extracting the elements of the collection- Since:
- 1.5
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.mat.snapshot.model.IObject
IObject.Type
-
-
Constructor Summary
Constructors Constructor Description ExtractedCollection(IObject coll, ICollectionExtractor extractor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
getNumberOfNotNullElements()
Get the number of non-null elements contained in the collectionjava.util.Iterator<IObject>
iterator()
-
Methods inherited from class org.eclipse.mat.inspections.collectionextract.AbstractExtractedCollection
extractEntries, extractEntryIds, getCapacity, getClassSpecificName, getClazz, getDisplayName, getFillRatio, getGCRootInfo, getObjectAddress, getObjectId, getOutboundReferences, getRetainedHeapSize, getSnapshot, getTechnicalName, getUsedHeapSize, hasCapacity, hasExtractableArray, hasExtractableContents, hasFillRatio, hasSize, isEmpty, resolveValue, size, toString
-
-
-
-
Constructor Detail
-
ExtractedCollection
public ExtractedCollection(IObject coll, ICollectionExtractor extractor)
-
-
Method Detail
-
iterator
public java.util.Iterator<IObject> iterator()
-
getNumberOfNotNullElements
public java.lang.Integer getNumberOfNotNullElements() throws SnapshotException
Get the number of non-null elements contained in the collection- Returns:
- the number of non-null elements
- Throws:
SnapshotException
-
-