Collections.Map.Concurrent

Description

Concurrent Map functions

Functions

NameSignature and Synopsis
clearvoid clear ( Object map )
Removes all of the mappings from this map.
containsKeyboolean containsKey ( Object map, Object key )
Returns true, if this map contains a mapping for the specified.
containsValueboolean containsValue ( Object map, Object value )
Returns true, if this map maps one or more keys to the specified value.
createConcurrentHashMapObject createConcurrentHashMap ( )
Create and return instance of ConcurrentHashMap.
This function returns a thread safe hash map.
createHashMapObject createHashMap ( )
Create and return instance of HashMap.
The hashmap returned by this function is not thread safe hence any updates if using a multi-threaded RETE should be done carefully.
createHashMapWithIdObject createHashMapWithId ( String mapId )
Create and return instance of ConcurrentHashMap.
createLinkedHashMapObject createLinkedHashMap ( )
Create and return instance of LinkedHashMap.
createLinkedHashMapWithIdObject createLinkedHashMapWithId ( String mapId )
Create and return instance of LinkedHashMap.
createMapObject createMap ( String className )
Creates user specified Map implementation
createMapWithIdObject createMapWithId ( String mapId )
Creates user specified Map implementation.
createTreeMapObject createTreeMap ( )
Create and return instance of TreeMap.
createTreeMapWithIdObject createTreeMapWithId ( String mapId )
Create and return instance of TreeMap.
deleteMapObject deleteMap ( String mapId )
Deletes the instance of map for the given mapId.
This function can not be used if the collection is created with createMap().
entrySetObject entrySet ( Object map )
Returns a view of the mappings contained in this map.
getObject get ( Object map, Object key )
Returns the value to which the specified key is mapped.
getMapObject getMap ( String mapId )
Returns the instance of map for the given mapId.
isEmptyboolean isEmpty ( Object map )
Returns true, if this map contains no key-value mappings.
keySetObject keySet ( Object map )
Returns a view of the keys contained in this map.
putObject put ( Object map, Object key, Object value )
Associates the specified value with the specified key in this map.
putAllvoid putAll ( Object map, Object mapToBeAdded )
Copies all of the mappings from the specified map to this map.
putIfAbsentObject putIfAbsent ( Object map ,Object key ,Object value )
If the specified key is not already associated with a value, associate it with the given value. The action is performed atomically.
removeboolean remove ( Object map ,Object key ,Object value )
Remove entry for key only if currently mapped to given value. The action is performed atomically.
replaceObject replace ( Object map ,Object key ,Object value )
Replace entry for key only if currently mapped to some value. The action is performed atomically.
replaceIfEqualToGivenValueboolean replaceIfEqualToGivenValue ( Object map ,Object key ,Object oldValue, Object newValue )
Replace entry for key only if currently mapped to given value. The action is performed atomically.
sizeint size ( Object map )
Returns the number of key-value mappings in this map.
valuesObject values ( Object map )
Returns a view of the values contained in this map.