Package com.vaadin.client.flow
Class TreeChangeProcessor
java.lang.Object
com.vaadin.client.flow.TreeChangeProcessor
Updates a state tree based on changes in JSON format.
- Since:
- 1.0
- Author:
- Vaadin Ltd
-
Method Summary
Modifier and TypeMethodDescriptionstatic StateNodeprocessChange(StateTree tree, elemental.json.JsonObject change) Update a state tree based on a JSON change.processChanges(StateTree tree, elemental.json.JsonArray changes) Update a state tree based on a JSON array of changes.
-
Method Details
-
processChanges
Update a state tree based on a JSON array of changes.- Parameters:
tree- the tree to updatechanges- the JSON array of changes- Returns:
- a set of updated nodes addressed by the
changes
-
processChange
Update a state tree based on a JSON change. This method is public for testing purposes.- Parameters:
tree- the tree to updatechange- the JSON change- Returns:
- the updated node addressed by the provided
change
-