public class MapMessage<K,V> extends ObjectMessage<Map<K,V>>
Map
objects between MaDKit agents.Constructor and Description |
---|
MapMessage()
/** Builds a
MapMessage containing an empty HashMap } |
MapMessage(Map<K,V> map)
Builds a
MapMessage containing the specified map |
Modifier and Type | Method and Description |
---|---|
V |
get(K key)
invoke
Map.get(Object) on the map contained in this message |
V |
put(K key,
V value)
invoke
Map.put(Object, Object) on the map contained in this message. |
getContent, max, min, sort, toString
clone, getConversationID, getReceiver, getSender
public MapMessage(Map<K,V> map)
MapMessage
containing the specified mapmap
- the original mappublic MapMessage()
MapMessage
containing an empty HashMap
}public V put(K key, V value)
Map.put(Object, Object)
on the map contained in this message.key
- key with which the specified value is to be associatedvalue
- value to be associated with the specified keyMap
public V get(K key)
Map.get(Object)
on the map contained in this message
Fabien Michel, Olivier Gutknecht, Jacques Ferber - July 18 2017