|
|||||||||
| Home >> All >> [ Allocator overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
Allocator
Class HeapAllocator.HeapPointer

java.lang.ObjectAllocator.HeapAllocator.HeapPointer
- All Implemented Interfaces:
- java.lang.Comparable
- Enclosing class:
- HeapAllocator
- public static class HeapAllocator.HeapPointer
- extends java.lang.Object
- implements java.lang.Comparable
- extends java.lang.Object
An object of this class represents a pointer to a heap address. It is a wrapped version of HeapAddress, so it can be used like an object.
| Field Summary | |
private Memory.HeapAddress |
ip
The (actual) address. |
| Constructor Summary | |
HeapAllocator.HeapPointer(Memory.HeapAddress ip)
Create a new heap pointer. |
|
| Method Summary | |
int |
compareTo(HeapAllocator.HeapPointer that)
Compare this heap pointer to another heap pointer. |
int |
compareTo(java.lang.Object that)
Compares this heap pointer to the given object. |
boolean |
equals(HeapAllocator.HeapPointer that)
Returns true if this heap pointer refers to the same location as the given heap pointer, false otherwise. |
boolean |
equals(java.lang.Object that)
Compares this heap pointer with the given object. |
Memory.HeapAddress |
get()
Extract the address of this heap pointer. |
int |
hashCode()
Returns the hash code of this heap pointer. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
ip
private final Memory.HeapAddress ip
- The (actual) address.
| Constructor Detail |
HeapAllocator.HeapPointer
public HeapAllocator.HeapPointer(Memory.HeapAddress ip)
- Create a new heap pointer.
| Method Detail |
get
public Memory.HeapAddress get()
- Extract the address of this heap pointer.
compareTo
public int compareTo(HeapAllocator.HeapPointer that)
- Compare this heap pointer to another heap pointer.
compareTo
public int compareTo(java.lang.Object that)
- Compares this heap pointer to the given object.
- Specified by:
compareToin interfacejava.lang.Comparable
equals
public boolean equals(HeapAllocator.HeapPointer that)
- Returns true if this heap pointer refers to the same location
as the given heap pointer, false otherwise.
equals
public boolean equals(java.lang.Object that)
- Compares this heap pointer with the given object.
hashCode
public int hashCode()
- Returns the hash code of this heap pointer.
|
|||||||||
| Home >> All >> [ Allocator overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
Allocator.HeapAllocator.HeapPointer