Package jadex.commons.collection
Class FastHashMap
- java.lang.Object
 - 
- jadex.commons.collection.FastHashMap
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable,java.util.Map
public class FastHashMap extends java.lang.Object implements java.util.Map, java.io.SerializableImplements a map from strings to objects as a hash table.nullkey is allowed;nullvalues are allowed.- Since:
 - Aug 30, 2005
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description FastHashMap()Constructor for Message. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(java.lang.Object key)booleancontainsValue(java.lang.Object value)java.util.SetentrySet()java.lang.Objectget(java.lang.Object key)java.lang.Object[]getKeys()booleanisEmpty()java.util.SetkeySet()java.lang.Objectput(java.lang.Object key, java.lang.Object value)voidputAll(java.util.Map map)java.lang.Objectremove(java.lang.Object key)intsize()java.lang.StringtoString()java.util.Collectionvalues() 
 - 
 
- 
- 
Method Detail
- 
put
public java.lang.Object put(java.lang.Object key, java.lang.Object value)- Specified by:
 putin interfacejava.util.Map- Parameters:
 key-value-- Returns:
 - the old value or null
 
 
- 
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
 getin interfacejava.util.Map- Parameters:
 key-- Returns:
 - the object for this key or null
 
 
- 
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
 containsKeyin interfacejava.util.Map- Parameters:
 key-- Returns:
 - true if there is a key of this kind
 
 
- 
getKeys
public java.lang.Object[] getKeys()
- Returns:
 - the keys from this message
 
 
- 
size
public int size()
- Specified by:
 sizein interfacejava.util.Map- Returns:
 - The size of the map.
 - See Also:
 Map.size()
 
- 
isEmpty
public boolean isEmpty()
- Specified by:
 isEmptyin interfacejava.util.Map- Returns:
 - True, if the map is empty.
 - See Also:
 Map.isEmpty()
 
- 
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
 containsValuein interfacejava.util.Map- Parameters:
 value-- Returns:
 - True, if the value was found.
 - See Also:
 Map.containsValue(java.lang.Object)
 
- 
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
 removein interfacejava.util.Map- Parameters:
 key-- Returns:
 - The object associated to the key.
 - See Also:
 Map.remove(java.lang.Object)
 
- 
putAll
public void putAll(java.util.Map map)
- Specified by:
 putAllin interfacejava.util.Map- Parameters:
 map-- See Also:
 Map.putAll(java.util.Map)
 
- 
clear
public void clear()
- Specified by:
 clearin interfacejava.util.Map- See Also:
 Map.clear()
 
- 
keySet
public java.util.Set keySet()
- Specified by:
 keySetin interfacejava.util.Map- Returns:
 - The key set.
 - See Also:
 Map.keySet()
 
- 
values
public java.util.Collection values()
- Specified by:
 valuesin interfacejava.util.Map- Returns:
 - The values.
 - See Also:
 Map.values()
 
- 
entrySet
public java.util.Set entrySet()
- Specified by:
 entrySetin interfacejava.util.Map- Returns:
 - The set of entries.
 - See Also:
 Map.entrySet()
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object- Returns:
 - the string representation of this message
 - See Also:
 Object.toString()
 
 - 
 
 -