com.vaadin.flow.internal.change.

Class MapPutChange

    • Constructor Detail

      • MapPutChange

        public MapPutChange(NodeFeature map,
                            String key,
                            Object value)

        Creates a new put change.

        Parameters:

        map - the changed map

        key - the key of the changed value

        value - 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 class NodeFeatureChange

        Parameters:

        json - the json object to populate

        constantPool - the constant pool to use for serializing constant pool references