Top Description Fields Constructors Methods
org.droidparts.dexmaker.dx.io.instructions

public final Class AddressMap

extends Object
Class Inheritance
Imports
java.util.HashMap

Map from addresses to addresses, where addresses are all ints.

Field Summary

Modifier and TypeField and Description
private final HashMap<Integer, Integer>
map

underlying map.

Constructor Summary

AccessConstructor and Description
public
AddressMap()

Constructs an instance.

Method Summary

Modifier and TypeMethod and Description
public int
get(int keyAddress)

Gets the value address corresponding to the given key address.

public void
put(int keyAddress, int valueAddress)

Sets the value address associated with the given key address.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mapback to summary
private final HashMap<Integer, Integer> map

underlying map.

Todo

This might be too inefficient.

Constructor Detail

AddressMapback to summary
public AddressMap()

Constructs an instance.

Method Detail

getback to summary
public int get(int keyAddress)

Gets the value address corresponding to the given key address. Returns -1 if there is no mapping.

putback to summary
public void put(int keyAddress, int valueAddress)

Sets the value address associated with the given key address.