public class GraphComparator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GraphComparator.Delta |
static class |
GraphComparator.DeltaError |
static interface |
GraphComparator.DeltaProcessor |
static interface |
GraphComparator.ID |
Constructor and Description |
---|
GraphComparator() |
Modifier and Type | Method and Description |
---|---|
static List<GraphComparator.DeltaError> |
applyDelta(Object source,
List<GraphComparator.Delta> commands,
GraphComparator.ID idFetcher,
GraphComparator.DeltaProcessor deltaProcessor,
boolean... failFast)
Apply the Delta commands to the source object graph, making
the requested changes to the source graph.
|
static List<GraphComparator.Delta> |
compare(Object source,
Object target,
GraphComparator.ID idFetcher)
Perform the asymmetric graph delta.
|
static GraphComparator.DeltaProcessor |
getJavaDeltaProcessor() |
public static final String ROOT
public static List<GraphComparator.Delta> compare(Object source, Object target, GraphComparator.ID idFetcher)
public static List<GraphComparator.DeltaError> applyDelta(Object source, List<GraphComparator.Delta> commands, GraphComparator.ID idFetcher, GraphComparator.DeltaProcessor deltaProcessor, boolean... failFast)
source
- Source object graphcommands
- List of Delta commands. These commands carry the
information required to identify the nodes to be modified, as well
as the values to modify them to (including commands to resize arrays,
set values into arrays, set fields to specific values, put new entries
into Maps, etc.public static GraphComparator.DeltaProcessor getJavaDeltaProcessor()
Copyright © 2024. All rights reserved.