|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mat.internal.collectionextract.FieldArrayCollectionExtractor
org.eclipse.mat.internal.collectionextract.FieldSizeArrayCollectionExtractor
org.eclipse.mat.internal.collectionextract.IdentityHashMapCollectionExtractor
public class IdentityHashMapCollectionExtractor
Info for IdentityHashMaps These are stored as key/value pairs in an array
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.mat.inspections.collectionextract.IMapExtractor |
---|
IMapExtractor.EntryObject |
Constructor Summary | |
---|---|
IdentityHashMapCollectionExtractor(String sizeField,
String arrayField)
|
Method Summary | |
---|---|
int[] |
extractEntryIds(IObject idMap)
Returns the object ids (int) for all objects which are contained in the collection |
Iterator<Map.Entry<IObject,IObject>> |
extractMapEntries(IObject coll)
Extracts the contents of a map (i.e. |
Integer |
getCapacity(IObject collection)
Gets the capacity of the map. |
Double |
getCollisionRatio(IObject coll)
Calculates the collision ratio in the collection |
Double |
getFillRatio(IObject coll)
Calculate the fill ration of a collection |
boolean |
hasCollisionRatio()
Check if the extractor can calculate collision ratio |
boolean |
hasExtractableContents()
Check if the collection has extractable contents |
Methods inherited from class org.eclipse.mat.internal.collectionextract.FieldSizeArrayCollectionExtractor |
---|
getSize, hasSize |
Methods inherited from class org.eclipse.mat.internal.collectionextract.FieldArrayCollectionExtractor |
---|
extractEntries, getNumberOfNotNullElements, hasCapacity, hasExtractableArray, hasFillRatio |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.mat.inspections.collectionextract.ICollectionExtractor |
---|
extractEntries, getNumberOfNotNullElements, getSize, hasCapacity, hasExtractableArray, hasFillRatio, hasSize |
Constructor Detail |
---|
public IdentityHashMapCollectionExtractor(String sizeField, String arrayField)
Method Detail |
---|
public Integer getCapacity(IObject collection) throws SnapshotException
getCapacity
in interface ICollectionExtractor
getCapacity
in class FieldArrayCollectionExtractor
SnapshotException
public boolean hasExtractableContents()
ICollectionExtractor
hasExtractableContents
in interface ICollectionExtractor
hasExtractableContents
in class FieldArrayCollectionExtractor
public int[] extractEntryIds(IObject idMap) throws SnapshotException
ICollectionExtractor
extractEntryIds
in interface ICollectionExtractor
extractEntryIds
in class FieldArrayCollectionExtractor
SnapshotException
public boolean hasCollisionRatio()
IMapExtractor
hasCollisionRatio
in interface IMapExtractor
public Double getCollisionRatio(IObject coll) throws SnapshotException
IMapExtractor
getCollisionRatio
in interface IMapExtractor
SnapshotException
public Double getFillRatio(IObject coll) throws SnapshotException
ICollectionExtractor
getFillRatio
in interface ICollectionExtractor
getFillRatio
in class FieldArrayCollectionExtractor
SnapshotException
public Iterator<Map.Entry<IObject,IObject>> extractMapEntries(IObject coll) throws SnapshotException
IMapExtractor
extractMapEntries
in interface IMapExtractor
coll
- - the map to extract contents from
SnapshotException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |