public class MapMessage<K,V> extends ObjectMessage<java.util.Map<K,V>>
Map objects between MaDKit agents.| Constructor and Description |
|---|
MapMessage()
/** Builds a
MapMessage containing an empty HashMap} |
MapMessage(java.util.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, toStringclone, getConversationID, getReceiver, getSenderpublic MapMessage(java.util.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
Fabien Michel, Olivier Gutknecht, Jacques Ferber - September 9 2019