org.eclipse.mat.internal.collectionextract
Class FieldSizeArrayCollectionExtractor
java.lang.Object
org.eclipse.mat.internal.collectionextract.FieldArrayCollectionExtractor
org.eclipse.mat.internal.collectionextract.FieldSizeArrayCollectionExtractor
- All Implemented Interfaces:
- ICollectionExtractor
- Direct Known Subclasses:
- IdentityHashMapCollectionExtractor
public class FieldSizeArrayCollectionExtractor
- extends FieldArrayCollectionExtractor
Method Summary |
Integer |
getSize(IObject coll)
Extract the size of the collection |
boolean |
hasSize()
Check if the size of the collection can be extracted |
FieldSizeArrayCollectionExtractor
public FieldSizeArrayCollectionExtractor(String sizeField,
String arrayField)
hasSize
public boolean hasSize()
- Description copied from interface:
ICollectionExtractor
- Check if the size of the collection can be extracted
- Specified by:
hasSize
in interface ICollectionExtractor
- Overrides:
hasSize
in class FieldArrayCollectionExtractor
- Returns:
getSize
public Integer getSize(IObject coll)
throws SnapshotException
- Description copied from interface:
ICollectionExtractor
- Extract the size of the collection
- Specified by:
getSize
in interface ICollectionExtractor
- Overrides:
getSize
in class FieldArrayCollectionExtractor
- Returns:
-
- Throws:
SnapshotException