K - key typeV - value typepublic interface MapWidgetModel<K,V> extends WidgetModel
MapWidgetModel is a WidgetModel holding mapped values.| Modifier and Type | Method and Description |
|---|---|
V |
get(K key)
Returns the value associated with the specified key.
|
java.util.Map<K,V> |
getMap()
Returns the internal map used by this model.
|
boolean |
put(K key,
V value)
Adds the key-value pair to the model.
|
V |
remove(K key)
Removes the mapping with the specified key.
|
boolean |
setMap(java.util.Map<K,V> map)
Sets the internal map used by this model.
|
addWidgetModelListener, notifyListeners, removeWidgetModelLlistenerboolean put(K key, V value)
key - mapping keyvalue - mapping valueV get(K key)
key - mapping keynull if no mapping is foundjava.util.Map<K,V> getMap()
V remove(K key)
key - the keynull if no mapping is foundCopyright © 2018 SAP SE. All Rights Reserved.