Public Member Functions | |
A_Star_LookupTable (int initialCapacity) | |
A_Star_Node | get (Node key) |
void | put (Node key, A_Star_Node value) |
A LookupTable for the mapping between Nodes and A_Star_Nodes. Uses the nodeid to construct an extremely very efficient lookup in an array. This has a far better performance than traditional HashMaps because no hashing is needed and no collisions can occur.
If you encounter any problems you may switch to the standard Java Hashmap by just replacing all occurences.
|
inline |
Constructs an empty LookupTable.
initialCapacity | the initial capacity. |
|
inline |
Returns the value to which the specified node is mapped, or null
if this map contains no mapping for the key.
|
inline |
Associates the specified value with the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced.
key | key with which the specified value is to be associated |
value | value to be associated with the specified key |