Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Allocator
Class HeapAllocator.HeapPointer  view HeapAllocator.HeapPointer download HeapAllocator.HeapPointer.java

java.lang.Object
  extended byAllocator.HeapAllocator.HeapPointer
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
HeapAllocator

public static class HeapAllocator.HeapPointer
extends java.lang.Object
implements java.lang.Comparable

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:
compareTo in interface java.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.