org.aris.maps
Class ObjectArrayMapStore

java.lang.Object
  extended by org.aris.maps.ObjectArrayMapStore

public class ObjectArrayMapStore
extends java.lang.Object

Version:
1.0
Author:
Konstantine Kougios, 15 Σεπ 2004, 11:06:52 μμ, for lib project

Constructor Summary
ObjectArrayMapStore()
           
 
Method Summary
 void dump(java.lang.String prefix)
          Dump the contents of this subtree.
 java.lang.Object get(java.lang.Object[] objArray)
          Searches for the key and returns the associated value.
 java.util.HashMap getStore()
           
 java.lang.Object put(java.lang.Object[] objArray, java.lang.Object value)
          Puts a key/value in the map.
 java.lang.Object remove(java.lang.Object[] objArray)
          Removes a key/value from the map.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectArrayMapStore

public ObjectArrayMapStore()
Method Detail

put

public java.lang.Object put(java.lang.Object[] objArray,
                            java.lang.Object value)
Puts a key/value in the map.

Parameters:
objArray - The key
value - The value (can be null)
Returns:
The previous value, or null if no previous value was associated with this key

remove

public java.lang.Object remove(java.lang.Object[] objArray)
Removes a key/value from the map.

Parameters:
objArray - The key
Returns:
The value associated with this key, or null if key not found

get

public java.lang.Object get(java.lang.Object[] objArray)
Searches for the key and returns the associated value.

Parameters:
objArray - The key
Returns:
The value, or null if not found.

dump

public void dump(java.lang.String prefix)
Dump the contents of this subtree. Only for debbuging

Parameters:
prefix - A string to use as prefix for the dump

getStore

public java.util.HashMap getStore()
Returns:
The HashMap which stores this depth's keys/values.