public final class AddressMap
extends Object
Map from addresses to addresses, where addresses are all
int
s.
-
Constructor Summary 
Constructors
-
Method Summary 
int
Gets the value address corresponding to the given key address.
void
put(int keyAddress,
int valueAddress)
Sets the value address associated with the given key address.
Methods inherited from class java.lang.Object 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details 
-
AddressMap 
public AddressMap()
Constructs an instance.
-
Method Details 
-
get 
public int get(int keyAddress)
Gets the value address corresponding to the given key address. Returns
-1
if there is no mapping.
-
put 
public void put(int keyAddress,
int valueAddress)
Sets the value address associated with the given key address.