-
public interface JavaHeapRepresents a heap of managed objects.
There may be multiple heaps within a JVM, for instance a generational heap and a class heap. Additionally, heaps may consist of non-contiguous memory regions. For instance, an object heap may be divided into a hot and cold section.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(Object obj)Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.StringgetName()Get a brief textual description of this heap.IteratorgetObjects()Get the set of objects which are stored in this heap.IteratorgetSections()Get the set of contiguous memory regions which form this heap.inthashCode()Answers an integer hash code for the receiver.
-
-
-
Method Detail
-
getSections
Iterator getSections()
Get the set of contiguous memory regions which form this heap.- Returns:
- an iterator over the collection of contiguous memory regions which form this heap
- See Also:
ImageSection,CorruptData
-
getName
String getName()
Get a brief textual description of this heap.- Returns:
- a brief textual description of this heap
-
getObjects
Iterator getObjects()
Get the set of objects which are stored in this heap.- Returns:
- an iterator over the collection of objects which are stored in this heap
- See Also:
JavaObject,CorruptData
-
equals
boolean equals(Object obj)
Description copied from class:ObjectCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison. The implementation in Object answers true only if the argument is the exact same object as the receiver (==).- Overrides:
equalsin classObject- Parameters:
obj-- Returns:
- True if the given object refers to the same Java Heap in the image
- See Also:
Object.hashCode()
-
hashCode
int hashCode()
Description copied from class:ObjectAnswers an integer hash code for the receiver. Any two objects which answertruewhen passed to.equalsmust answer the same value for this method.- Overrides:
hashCodein classObject- Returns:
- the receiver's hash.
- See Also:
Object.equals(java.lang.Object)
-
-