com.vaadin.flow.internal.change.
Class MapPutChange
- java.lang.Object
-
- com.vaadin.flow.internal.change.NodeChange
-
- com.vaadin.flow.internal.change.NodeFeatureChange
-
- com.vaadin.flow.internal.change.MapPutChange
-
All Implemented Interfaces:
public class MapPutChange extends NodeFeatureChange
Change describing a changed value in a map feature.
For internal use only. May be renamed or removed in a future release.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
-
Constructor Summary
Constructors Constructor Description MapPutChange(NodeFeature map, String key, Object value)
Creates a new put change.
-
Method Summary
All Methods Modifier and Type Method Description String
getKey()
Gets the key of the change.
Object
getValue()
Gets the new value.
protected void
populateJson(elemental.json.JsonObject json, ConstantPool constantPool)
Overridden by subclasses to populate a JSON object when serializing.
-
Methods inherited from class com.vaadin.flow.internal.change.NodeFeatureChange
getFeature
-
Methods inherited from class com.vaadin.flow.internal.change.NodeChange
getNode, toJson
-
-
-
-
Constructor Detail
-
MapPutChange
public MapPutChange(NodeFeature map, String key, Object value)
Creates a new put change.
Parameters:
map
- the changed mapkey
- the key of the changed valuevalue
- the new value
-
-
Method Detail
-
getKey
public String getKey()
Gets the key of the change.
Returns:
the key of the change
-
getValue
public Object getValue()
Gets the new value.
Returns:
the new value
-
populateJson
protected void populateJson(elemental.json.JsonObject json, ConstantPool constantPool)
Description copied from class:
NodeChange
Overridden by subclasses to populate a JSON object when serializing.
Overrides:
populateJson
in classNodeFeatureChange
Parameters:
json
- the json object to populateconstantPool
- the constant pool to use for serializing constant pool references
-
-