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 SummaryConstructors Constructor Description FastHashMap()Constructor for Message.
 - 
Method SummaryAll 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- 
putpublic java.lang.Object put(java.lang.Object key, java.lang.Object value)- Specified by:
- putin interface- java.util.Map
- Parameters:
- key-
- value-
- Returns:
- the old value or null
 
 - 
getpublic java.lang.Object get(java.lang.Object key) - Specified by:
- getin interface- java.util.Map
- Parameters:
- key-
- Returns:
- the object for this key or null
 
 - 
containsKeypublic boolean containsKey(java.lang.Object key) - Specified by:
- containsKeyin interface- java.util.Map
- Parameters:
- key-
- Returns:
- true if there is a key of this kind
 
 - 
getKeyspublic java.lang.Object[] getKeys() - Returns:
- the keys from this message
 
 - 
sizepublic int size() - Specified by:
- sizein interface- java.util.Map
- Returns:
- The size of the map.
- See Also:
- Map.size()
 
 - 
isEmptypublic boolean isEmpty() - Specified by:
- isEmptyin interface- java.util.Map
- Returns:
- True, if the map is empty.
- See Also:
- Map.isEmpty()
 
 - 
containsValuepublic boolean containsValue(java.lang.Object value) - Specified by:
- containsValuein interface- java.util.Map
- Parameters:
- value-
- Returns:
- True, if the value was found.
- See Also:
- Map.containsValue(java.lang.Object)
 
 - 
removepublic java.lang.Object remove(java.lang.Object key) - Specified by:
- removein interface- java.util.Map
- Parameters:
- key-
- Returns:
- The object associated to the key.
- See Also:
- Map.remove(java.lang.Object)
 
 - 
putAllpublic void putAll(java.util.Map map) - Specified by:
- putAllin interface- java.util.Map
- Parameters:
- map-
- See Also:
- Map.putAll(java.util.Map)
 
 - 
clearpublic void clear() - Specified by:
- clearin interface- java.util.Map
- See Also:
- Map.clear()
 
 - 
keySetpublic java.util.Set keySet() - Specified by:
- keySetin interface- java.util.Map
- Returns:
- The key set.
- See Also:
- Map.keySet()
 
 - 
valuespublic java.util.Collection values() - Specified by:
- valuesin interface- java.util.Map
- Returns:
- The values.
- See Also:
- Map.values()
 
 - 
entrySetpublic java.util.Set entrySet() - Specified by:
- entrySetin interface- java.util.Map
- Returns:
- The set of entries.
- See Also:
- Map.entrySet()
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
- Returns:
- the string representation of this message
- See Also:
- Object.toString()
 
 
- 
 
-