- All Known Implementing Classes:
DTFJJavaHeap
,JavaHeap
public interface JavaHeap
Represents 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
Modifier and TypeMethodDescriptionboolean
Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.getName()
Get a brief textual description of this heap.Get the set of objects which are stored in this heap.Get the set of contiguous memory regions which form this heap.int
hashCode()
Answers an integer hash code for the receiver.
-
Method Details
-
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:
-
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:
-
equals
Description copied from class:java.lang.Object
Compares 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 (==). -
hashCode
int hashCode()Description copied from class:java.lang.Object
Answers an integer hash code for the receiver. Any two objects which answertrue
when passed to.equals
must answer the same value for this method.
-