Class MapCollectionExtractorBase
java.lang.Object
org.eclipse.mat.internal.collectionextract.MapCollectionExtractorBase
- All Implemented Interfaces:
ICollectionExtractor,IMapExtractor
- Direct Known Subclasses:
HashedMapCollectionExtractorBase,TreeMapCollectionExtractor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.mat.inspections.collectionextract.IMapExtractor
IMapExtractor.EntryObject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractMapEntries(IObject coll) Extracts the contents of a map (i.e.getCapacity(IObject coll) Return the capacity of the collection, if applicablebooleanCheck if the collection has capacity, e.g.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.mat.inspections.collectionextract.ICollectionExtractor
extractEntries, extractEntryIds, getFillRatio, getNumberOfNotNullElements, getSize, hasExtractableArray, hasExtractableContents, hasFillRatio, hasSizeMethods inherited from interface org.eclipse.mat.inspections.collectionextract.IMapExtractor
getCollisionRatio, hasCollisionRatio
-
Constructor Details
-
MapCollectionExtractorBase
-
-
Method Details
-
hasCapacity
public boolean hasCapacity()Description copied from interface:ICollectionExtractorCheck if the collection has capacity, e.g. ArrayList- Specified by:
hasCapacityin interfaceICollectionExtractor- Returns:
- true if
ICollectionExtractor.getCapacity(IObject)could be called - See Also:
-
getCapacity
Description copied from interface:ICollectionExtractorReturn the capacity of the collection, if applicable- Specified by:
getCapacityin interfaceICollectionExtractor- Parameters:
coll- - the collection to find the capacity of- Returns:
- the capacity in bytes, or null if unavailable
- Throws:
SnapshotException- if there is a problem retrieving data from the snapshot- See Also:
-
extractMapEntries
Description copied from interface:IMapExtractorExtracts the contents of a map (i.e. an IObject representing a Map) and provides an Iterator over them- Specified by:
extractMapEntriesin interfaceIMapExtractor- Parameters:
coll- - the map to extract contents from- Returns:
- an Iterator over the entries. If the original Map had an Entry object, the content of the iterator would usually be EntryObject
-