Jadex 0.96-beta1

jadex.util.collection
Class FastHashMap

java.lang.Object
  extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry
 
Constructor Summary
FastHashMap()
          Constructor for Message.
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set entrySet()
           
 Object get(Object key)
           
 Object[] getKeys()
           
 boolean isEmpty()
           
 Set keySet()
           
 Object put(Object key, Object value)
           
 void putAll(Map map)
           
 Object remove(Object key)
           
 int size()
           
 String toString()
           
 Collection values()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

FastHashMap

public FastHashMap()
Constructor for Message.

Method Detail

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map
Parameters:
key -
value -
Returns:
the old value or null

get

public Object get(Object key)
Specified by:
get in interface Map
Parameters:
key -
Returns:
the object for this key or null

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in 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:
size in interface Map
Returns:
The size of the map.
See Also:
Map.size()

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map
Returns:
True, if the map is empty.
See Also:
Map.isEmpty()

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in 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:
remove in 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:
putAll in interface Map
Parameters:
map -
See Also:
Map.putAll(java.util.Map)

clear

public void clear()
Specified by:
clear in interface Map
See Also:
Map.clear()

keySet

public Set keySet()
Specified by:
keySet in interface Map
Returns:
The key set.
See Also:
Map.keySet()

values

public Collection values()
Specified by:
values in interface Map
Returns:
The values.
See Also:
Map.values()

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map
Returns:
The set of entries.
See Also:
Map.entrySet()

toString

public String toString()
Overrides:
toString in class Object
Returns:
the string representation of this message
See Also:
Object.toString()

Jadex 0.96-beta1

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.