public class DefaultMapWidgetModel<K,V> extends AbstractWidgetModel implements MapWidgetModel<K,V>
| Constructor and Description |
|---|
DefaultMapWidgetModel() |
| 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, getWidgetModelListeners, notifyListeners, notifyListeners, removeWidgetModelLlistenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddWidgetModelListener, notifyListeners, removeWidgetModelLlistenerpublic V get(K key)
MapWidgetModelget in interface MapWidgetModel<K,V>key - mapping keynull if no mapping is foundpublic boolean put(K key, V value)
MapWidgetModelput in interface MapWidgetModel<K,V>key - mapping keyvalue - mapping valuepublic boolean setMap(java.util.Map<K,V> map)
MapWidgetModelsetMap in interface MapWidgetModel<K,V>map - the mappublic java.util.Map<K,V> getMap()
MapWidgetModelgetMap in interface MapWidgetModel<K,V>public V remove(K key)
MapWidgetModelremove in interface MapWidgetModel<K,V>key - the keynull if no mapping is foundCopyright © 2018 SAP SE. All Rights Reserved.