Class MapRemoveChange

  • All Implemented Interfaces:
    Serializable

    public class MapRemoveChange
    extends NodeFeatureChange
    Change describing a value removed from a map.

    For internal use only. May be renamed or removed in a future release.

    Since:
    1.0
    Author:
    Vaadin Ltd
    See Also:
    Serialized Form
    • Constructor Detail

      • MapRemoveChange

        public MapRemoveChange​(NodeMap map,
                               String key)
        Creates a new remove change.
        Parameters:
        map - the changed map
        key - the removed key
    • Method Detail

      • getKey

        public String getKey()
        Gets the removed key.
        Returns:
        the removed key
      • 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 class NodeFeatureChange
        Parameters:
        json - the json object to populate
        constantPool - the constant pool to use for serializing constant pool references