|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mat.internal.collectionextract.HashSetCollectionExtractor
public class HashSetCollectionExtractor
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.mat.inspections.collectionextract.IMapExtractor |
---|
IMapExtractor.EntryObject |
Constructor Summary | |
---|---|
HashSetCollectionExtractor(String array_attribute,
String key_attribute)
|
|
HashSetCollectionExtractor(String size_attribute,
String array_attribute,
String key_attribute,
String value_attribute)
|
Method Summary | |
---|---|
IObjectArray |
extractEntries(IObject coll)
Extracts the array containing the collection content |
int[] |
extractEntryIds(IObject coll)
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 coll)
Return the capacity of the collection, if applicable |
Double |
getCollisionRatio(IObject coll)
Calculates the collision ratio in the collection |
Double |
getFillRatio(IObject coll)
Calculate the fill ration of a collection |
Integer |
getNumberOfNotNullElements(IObject coll)
Returns the number of non-null elements in the collection. |
Integer |
getSize(IObject coll)
Extract the size of the collection |
boolean |
hasCapacity()
Check if the collection has capacity, e.g. |
boolean |
hasCollisionRatio()
Check if the extractor can calculate collision ratio |
boolean |
hasExtractableArray()
Return true if the collection array based and the array can be extracted from the heap dump |
boolean |
hasExtractableContents()
Check if the collection has extractable contents |
boolean |
hasFillRatio()
Check if fill ratio for the collection can be calculated, i.e. |
boolean |
hasSize()
Check if the size of the collection can be extracted |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HashSetCollectionExtractor(String array_attribute, String key_attribute)
public HashSetCollectionExtractor(String size_attribute, String array_attribute, String key_attribute, String value_attribute)
Method Detail |
---|
public boolean hasSize()
ICollectionExtractor
hasSize
in interface ICollectionExtractor
public Integer getSize(IObject coll) throws SnapshotException
ICollectionExtractor
getSize
in interface ICollectionExtractor
SnapshotException
public boolean hasCapacity()
ICollectionExtractor
hasCapacity
in interface ICollectionExtractor
public Integer getCapacity(IObject coll) throws SnapshotException
ICollectionExtractor
getCapacity
in interface ICollectionExtractor
SnapshotException
public boolean hasFillRatio()
ICollectionExtractor
hasFillRatio
in interface ICollectionExtractor
public Double getFillRatio(IObject coll) throws SnapshotException
ICollectionExtractor
getFillRatio
in interface ICollectionExtractor
SnapshotException
public IObjectArray extractEntries(IObject coll) throws SnapshotException
ICollectionExtractor
extractEntries
in interface ICollectionExtractor
SnapshotException
public boolean hasExtractableArray()
ICollectionExtractor
hasExtractableArray
in interface ICollectionExtractor
public boolean hasExtractableContents()
ICollectionExtractor
hasExtractableContents
in interface ICollectionExtractor
public int[] extractEntryIds(IObject coll) throws SnapshotException
ICollectionExtractor
extractEntryIds
in interface ICollectionExtractor
SnapshotException
public Integer getNumberOfNotNullElements(IObject coll) throws SnapshotException
ICollectionExtractor
getNumberOfNotNullElements
in interface ICollectionExtractor
SnapshotException
public boolean hasCollisionRatio()
IMapExtractor
hasCollisionRatio
in interface IMapExtractor
public Double getCollisionRatio(IObject coll) throws SnapshotException
IMapExtractor
getCollisionRatio
in interface IMapExtractor
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 |