Collections.Map

Description

Map functions

Categories

NameDescription
ConcurrentConcurrent Map functions
EntryUtility Functions for java.util.Map.Entry

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.
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 HashMap.
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.
removeObject remove ( Object map, Object key )
Removes the mapping for a key from this map if it is present.
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.