Class DefaultMapWidgetModel<K,V>
java.lang.Object
de.hybris.platform.cockpit.widgets.models.impl.AbstractWidgetModel
de.hybris.platform.cockpit.widgets.models.impl.DefaultMapWidgetModel<K,V>
- All Implemented Interfaces:
MapWidgetModel<K,,V> WidgetModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value associated with the specified key.getMap()Returns the internal map used by this model.booleanAdds the key-value pair to the model.Removes the mapping with the specified key.booleanSets the internal map used by this model.Methods inherited from class de.hybris.platform.cockpit.widgets.models.impl.AbstractWidgetModel
addWidgetModelListener, getWidgetModelListeners, notifyListeners, notifyListeners, removeWidgetModelLlistenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.cockpit.widgets.models.WidgetModel
addWidgetModelListener, notifyListeners, removeWidgetModelLlistener
-
Constructor Details
-
DefaultMapWidgetModel
public DefaultMapWidgetModel()
-
-
Method Details
-
get
Description copied from interface:MapWidgetModelReturns the value associated with the specified key.- Specified by:
getin interfaceMapWidgetModel<K,V> - Parameters:
key- mapping key- Returns:
- the value associated with the specified key or
nullif no mapping is found
-
put
Description copied from interface:MapWidgetModelAdds the key-value pair to the model. Any previous value associated with the key will be overwritten.- Specified by:
putin interfaceMapWidgetModel<K,V> - Parameters:
key- mapping keyvalue- mapping value- Returns:
- true if a change was made, false otherwise
-
setMap
Description copied from interface:MapWidgetModelSets the internal map used by this model.- Specified by:
setMapin interfaceMapWidgetModel<K,V> - Parameters:
map- the map- Returns:
- true if a change was made, false otherwise
-
getMap
Description copied from interface:MapWidgetModelReturns the internal map used by this model.- Specified by:
getMapin interfaceMapWidgetModel<K,V> - Returns:
- map containing all the mappings held by this model
-
remove
Description copied from interface:MapWidgetModelRemoves the mapping with the specified key.- Specified by:
removein interfaceMapWidgetModel<K,V> - Parameters:
key- the key- Returns:
- the removed value or
nullif no mapping is found
-