Package org.eclipse.mat.snapshot.model
Class NamedReference
java.lang.Object
org.eclipse.mat.snapshot.model.ObjectReference
org.eclipse.mat.snapshot.model.NamedReference
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PseudoReference
A named reference.
- See Also:
-
Constructor Summary
ConstructorDescriptionNamedReference
(ISnapshot snapshot, long address, String name) Constructs a reference to a Java object with a description of why the reference occurred. -
Method Summary
Methods inherited from class org.eclipse.mat.snapshot.model.ObjectReference
getObject, getObjectAddress, getObjectId, toString
-
Constructor Details
-
NamedReference
Constructs a reference to a Java object with a description of why the reference occurred.- Parameters:
snapshot
- the whole dumpaddress
- the address of the target objectname
- the description of the reference, for example the field name, an array index
-
-
Method Details
-
getName
Get the description of the reference.- Returns:
- the description
-
hashCode
public int hashCode()- Overrides:
hashCode
in classObjectReference
-
equals
- Overrides:
equals
in classObjectReference
-