Class LinkedListCollectionExtractor
java.lang.Object
org.eclipse.mat.internal.collectionextract.FieldSizedCollectionExtractor
org.eclipse.mat.internal.collectionextract.LinkedListCollectionExtractor
- All Implemented Interfaces:
ICollectionExtractor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]extractEntryIds(IObject list) Returns the object ids (int) for all objects which are contained in the collectionExtract the size of the collection.booleanCheck if the collection has extractable contentsbooleanhasSize()Check if the size of the collection can be extracted.Methods inherited from class org.eclipse.mat.internal.collectionextract.FieldSizedCollectionExtractor
extractEntries, getCapacity, getFillRatio, getNumberOfNotNullElements, hasCapacity, hasExtractableArray, hasFillRatio
-
Constructor Details
-
LinkedListCollectionExtractor
-
-
Method Details
-
hasExtractableContents
public boolean hasExtractableContents()Description copied from interface:ICollectionExtractorCheck if the collection has extractable contents- Specified by:
hasExtractableContentsin interfaceICollectionExtractor- Overrides:
hasExtractableContentsin classFieldSizedCollectionExtractor- Returns:
- true if
ICollectionExtractor.extractEntryIds(IObject)could be called - See Also:
-
extractEntryIds
Description copied from interface:ICollectionExtractorReturns the object ids (int) for all objects which are contained in the collection- Specified by:
extractEntryIdsin interfaceICollectionExtractor- Overrides:
extractEntryIdsin classFieldSizedCollectionExtractor- Parameters:
list- - the collection to find the objects it holds- Returns:
- an array of ints which are the object ids.
- Throws:
SnapshotException- if there is a problem retrieving data from the snapshot- See Also:
-
hasSize
public boolean hasSize()Description copied from interface:ICollectionExtractorCheck if the size of the collection can be extracted.- Specified by:
hasSizein interfaceICollectionExtractor- Overrides:
hasSizein classFieldSizedCollectionExtractor- Returns:
- true if
ICollectionExtractor.getSize(IObject)could be called - See Also:
-
getSize
Description copied from interface:ICollectionExtractorExtract the size of the collection.- Specified by:
getSizein interfaceICollectionExtractor- Overrides:
getSizein classFieldSizedCollectionExtractor- Parameters:
coll- - the collection to find the size of- Returns:
- the size, or null if not available
- Throws:
SnapshotException- if there is a problem retrieving data from the snapshot- See Also:
-