com.vaadin.flow.internal.change.

Class ListRemoveChange<T extends Serializable>

    • Constructor Detail

      • ListRemoveChange

        public ListRemoveChange(NodeList<T> list,
                                int index,
                                T removedItem)

        Creates a new list remove change.

        Parameters:

        list - the changed list

        index - the index of the remove operation

        removedItem - a removed item

    • Method Detail

      • getRemovedItem

        public T getRemovedItem()

        Gets the removed item.

        This method is public only for testing reasons.

        Returns:

        the removed item

      • 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