Package com.cedarsoftware.util
Interface GraphComparator.DeltaProcessor
- Enclosing class:
- GraphComparator
public static interface GraphComparator.DeltaProcessor
Strategy interface used when applying
GraphComparator.Delta objects to a source
graph. Implementations perform the actual mutation operations.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessArrayResize(Object srcValue, Field field, GraphComparator.Delta delta) Resize an array to match the target length.voidprocessArraySetElement(Object srcValue, Field field, GraphComparator.Delta delta) Apply a value into an array element.voidprocessListResize(Object srcValue, Field field, GraphComparator.Delta delta) Adjust aList's size.voidprocessListSetElement(Object srcValue, Field field, GraphComparator.Delta delta) Set a list element to a new value.voidprocessMapPut(Object srcValue, Field field, GraphComparator.Delta delta) Put a key/value pair into aMap.voidprocessMapRemove(Object srcValue, Field field, GraphComparator.Delta delta) Remove an entry from aMap.voidprocessObjectAssignField(Object srcValue, Field field, GraphComparator.Delta delta) Assign a field value on an object.voidprocessObjectOrphan(Object srcValue, Field field, GraphComparator.Delta delta) Remove an orphaned object from the graph.voidprocessObjectTypeChanged(Object srcValue, Field field, GraphComparator.Delta delta) Change the type of an object reference.voidprocessSetAdd(Object srcValue, Field field, GraphComparator.Delta delta) Add a value to aSet.voidprocessSetRemove(Object srcValue, Field field, GraphComparator.Delta delta) Remove a value from aSet.
-
Method Details
-
processArraySetElement
Apply a value into an array element. -
processArrayResize
Resize an array to match the target length. -
processObjectAssignField
Assign a field value on an object. -
processObjectOrphan
Remove an orphaned object from the graph. -
processObjectTypeChanged
Change the type of an object reference. -
processSetAdd
Add a value to aSet. -
processSetRemove
Remove a value from aSet. -
processMapPut
Put a key/value pair into aMap. -
processMapRemove
Remove an entry from aMap. -
processListResize
Adjust aList's size. -
processListSetElement
Set a list element to a new value.
-