org.eclipse.mat.internal.collectionextract
Class WrapperMapExtractor
java.lang.Object
org.eclipse.mat.internal.collectionextract.WrapperCollectionExtractor
org.eclipse.mat.internal.collectionextract.WrapperMapExtractor
- All Implemented Interfaces:
- ICollectionExtractor, IMapExtractor
public class WrapperMapExtractor
- extends WrapperCollectionExtractor
- implements IMapExtractor
Methods inherited from class org.eclipse.mat.internal.collectionextract.WrapperCollectionExtractor |
extractEntries, extractEntryIds, getCapacity, getFillRatio, getNumberOfNotNullElements, getSize, hasCapacity, hasExtractableArray, hasExtractableContents, hasFillRatio, hasSize |
Methods inherited from interface org.eclipse.mat.inspections.collectionextract.ICollectionExtractor |
extractEntries, extractEntryIds, getCapacity, getFillRatio, getNumberOfNotNullElements, getSize, hasCapacity, hasExtractableArray, hasExtractableContents, hasFillRatio, hasSize |
WrapperMapExtractor
public WrapperMapExtractor(String field)
hasCollisionRatio
public boolean hasCollisionRatio()
- Description copied from interface:
IMapExtractor
- Check if the extractor can calculate collision ratio
- Specified by:
hasCollisionRatio
in interface IMapExtractor
- Returns:
getCollisionRatio
public Double getCollisionRatio(IObject coll)
throws SnapshotException
- Description copied from interface:
IMapExtractor
- Calculates the collision ratio in the collection
- Specified by:
getCollisionRatio
in interface IMapExtractor
- Returns:
- Double number of elements with colliding keys / size
- Throws:
SnapshotException
extractMapEntries
public Iterator<Map.Entry<IObject,IObject>> extractMapEntries(IObject coll)
- Description copied from interface:
IMapExtractor
- Extracts the contents of a map (i.e. an IObject representing a Map) and
provides an Iterator over them
- Specified by:
extractMapEntries
in interface IMapExtractor
- 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