com.bankframe.ei.txnhandler.hostcache
Class MultiMap

java.lang.Object
  extended bycom.bankframe.ei.txnhandler.hostcache.MultiMap

Deprecated. Use the com.bankframe.serives.cache package instead

public class MultiMap
extends java.lang.Object

This data type will order the keys in ascending order according to the Comparable interface.


Constructor Summary
MultiMap()
          Deprecated.  
 
Method Summary
 java.lang.Object firstKey()
          Deprecated. Returns the first (lowest) key currently in this sorted map.
 java.util.List get(java.lang.Object key)
          Deprecated. This method gets a copy of the list associated with get key.
 java.util.Set keySet()
          Deprecated. This method returns the keys in this set in ascending order.
 void put(java.lang.Object key, java.lang.Object val)
          Deprecated. This method puts the val in the list associated with the key.
 java.util.List remove(java.lang.Object key)
          Deprecated. This method removes the set of objects associated with this key.
 java.lang.Object remove(java.lang.Object key, int index)
          Deprecated. This method removes the object associated with this key that is the i th element.
 java.lang.Object remove(java.lang.Object key, java.lang.Object value)
          Deprecated. This method removes the object associated with this key that is equal to the value passed in.
 int size()
          Deprecated. This method returns the size of the map.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiMap

public MultiMap()
Deprecated. 
Method Detail

firstKey

public java.lang.Object firstKey()
Deprecated. 
Returns the first (lowest) key currently in this sorted map.

Returns:
Returns the first key in the map.

get

public java.util.List get(java.lang.Object key)
Deprecated. 
This method gets a copy of the list associated with get key.

Parameters:
key - The key to search on.
Returns:
A copy of the list associated with get key or null if it could not be found.

keySet

public java.util.Set keySet()
Deprecated. 
This method returns the keys in this set in ascending order.

Returns:
The keys in this set in ascending order.

put

public void put(java.lang.Object key,
                java.lang.Object val)
Deprecated. 
This method puts the val in the list associated with the key.

Parameters:
key - The key the put the value in.
val - The value to store.

remove

public java.util.List remove(java.lang.Object key)
Deprecated. 
This method removes the set of objects associated with this key.

Parameters:
key - The key to remove.
Returns:
This list of items removed(not a copy).

remove

public java.lang.Object remove(java.lang.Object key,
                               int index)
Deprecated. 
This method removes the object associated with this key that is the i th element.

Parameters:
key - The key to search on.
index - The index to remove.
Returns:
Returns the object removed or null if it doesn't exist.

remove

public java.lang.Object remove(java.lang.Object key,
                               java.lang.Object value)
Deprecated. 
This method removes the object associated with this key that is equal to the value passed in. Note that this may take O(n) time, where n is the number of objects associated with the key.

Parameters:
key - The key to search on.
value - The value to remove.
Returns:
Returns the value removed or null if it could not be found.

size

public int size()
Deprecated. 
This method returns the size of the map. That is the number of values.

Returns:
the number of values in the map.


Copyright © 2005, 2007, Oracle. All rights reserved.