jadex.util.collection
Class FastHashMap
java.lang.Object
   jadex.util.collection.FastHashMap
jadex.util.collection.FastHashMap
- All Implemented Interfaces: 
- Serializable, Map
- public class FastHashMap 
- extends Object- implements Map, Serializable
Implements a map from strings to objects as a hash table.
 null key is allowed; null values are allowed.
- Since:
- Aug 30, 2005
- Author:
- walczak
- See Also:
- Serialized Form
 
| Nested classes/interfaces inherited from interface java.util.Map | 
| Map.Entry | 
 
| Constructor Summary | 
| FastHashMap()Constructor for Message.
 | 
 
 
 
 
FastHashMap
public FastHashMap()
- Constructor for Message.
 
put
public Object put(Object key,
                  Object value)
- 
- Specified by:
- putin interface- Map
 
- 
- Parameters:
- key-
- value-
- Returns:
- the old value or null
 
get
public Object get(Object key)
- 
- Specified by:
- getin interface- Map
 
- 
- Parameters:
- key-
- Returns:
- the object for this key or null
 
containsKey
public boolean containsKey(Object key)
- 
- Specified by:
- containsKeyin interface- Map
 
- 
- Parameters:
- key-
- Returns:
- true if there is a key of this kind
 
getKeys
public Object[] getKeys()
- 
 
- 
- Returns:
- the keys from this message
 
size
public int size()
- 
- Specified by:
- sizein interface- Map
 
- 
- Returns:
- The size of the map.
- See Also:
- Map.size()
 
isEmpty
public boolean isEmpty()
- 
- Specified by:
- isEmptyin interface- Map
 
- 
- Returns:
- True, if the map is empty.
- See Also:
- Map.isEmpty()
 
containsValue
public boolean containsValue(Object value)
- 
- Specified by:
- containsValuein interface- Map
 
- 
- Parameters:
- value-
- Returns:
- True, if the value was found.
- See Also:
- Map.containsValue(java.lang.Object)
 
remove
public Object remove(Object key)
- 
- Specified by:
- removein interface- Map
 
- 
- Parameters:
- key-
- Returns:
- The object associated to the key.
- See Also:
- Map.remove(java.lang.Object)
 
putAll
public void putAll(Map map)
- 
- Specified by:
- putAllin interface- Map
 
- 
- Parameters:
- map-
- See Also:
- Map.putAll(java.util.Map)
 
clear
public void clear()
- 
- Specified by:
- clearin interface- Map
 
- 
- See Also:
- Map.clear()
 
keySet
public Set keySet()
- 
- Specified by:
- keySetin interface- Map
 
- 
- Returns:
- The key set.
- See Also:
- Map.keySet()
 
values
public Collection values()
- 
- Specified by:
- valuesin interface- Map
 
- 
- Returns:
- The values.
- See Also:
- Map.values()
 
entrySet
public Set entrySet()
- 
- Specified by:
- entrySetin interface- Map
 
- 
- Returns:
- The set of entries.
- See Also:
- Map.entrySet()
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
- Returns:
- the string representation of this message
- See Also:
- Object.toString()
 
Submit a bug or feature
 For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples. Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.