public class MapPutChange extends NodeFeatureChange
Constructor and Description |
---|
MapPutChange(NodeFeature map,
String key,
Object value)
Creates a new put change.
|
Modifier and Type | Method and 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.
|
getFeature
getNode, toJson
public MapPutChange(NodeFeature map, String key, Object value)
map
- the changed mapkey
- the key of the changed valuevalue
- the new valuepublic String getKey()
public Object getValue()
protected void populateJson(elemental.json.JsonObject json, ConstantPool constantPool)
NodeChange
populateJson
in class NodeFeatureChange
json
- the json object to populateconstantPool
- the constant pool to use for serializing constant pool
referencesCopyright © 2020. All rights reserved.