Package com.vaadin.client.flow
Class TreeChangeProcessor
- java.lang.Object
-
- com.vaadin.client.flow.TreeChangeProcessor
-
public class TreeChangeProcessor extends Object
Updates a state tree based on changes in JSON format.- Since:
- 1.0
- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StateNodeprocessChange(StateTree tree, elemental.json.JsonObject change)Update a state tree based on a JSON change.static JsSet<StateNode>processChanges(StateTree tree, elemental.json.JsonArray changes)Update a state tree based on a JSON array of changes.
-
-
-
Method Detail
-
processChanges
public static JsSet<StateNode> processChanges(StateTree tree, elemental.json.JsonArray changes)
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
public static StateNode processChange(StateTree tree, elemental.json.JsonObject change)
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
-
-