public interface ObjectAddressRemapper
Modifier and Type | Method and Description |
---|---|
Object |
addressAsObject(Address address)
Map an address to an object.
|
int |
identityHashCode(Object object)
Identity hash code of an object
|
<T> T |
intern(T object)
Avoid duplicates of certain objects
|
<T> Address |
objectAsAddress(T object)
Map an object to an address.
|
<T> Address objectAsAddress(T object)
T
- the object's typeobject
- in "local" virtual machineObject addressAsObject(Address address)
address
- value obtained from "objectAsAddress"<T> T intern(T object)
T
- the object's typeobject
- to internint identityHashCode(Object object)
object
- the object to generate the identity hash code for