Class ListClearChange<T extends Serializable>

Type Parameters:
T - the type of the items in the node list
All Implemented Interfaces:
Serializable

public class ListClearChange<T extends Serializable> extends AbstractListChange<T>
Change describing a clear operation in a list node feature.

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

Since:
1.0
Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • ListClearChange

      public ListClearChange(NodeList<T> list)
      Creates a new list clear change.
      Parameters:
      list - the changed list
  • Method Details

    • copy

      public AbstractListChange<T> copy(int indx)
      Description copied from class: AbstractListChange
      Gets a copy of the change with the same data except index.
      Specified by:
      copy in class AbstractListChange<T extends Serializable>
      Parameters:
      indx - the new index of the change
      Returns:
      a copy of the change based on new index
    • 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