public class JsonDiff extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonDiff.AbstractDiff |
static class |
JsonDiff.AddedKey |
static class |
JsonDiff.ArrayDeletedValue |
static class |
JsonDiff.ArrayDiff |
static class |
JsonDiff.ArrayInsertedValue |
static interface |
JsonDiff.Difference |
static class |
JsonDiff.KeyDiff |
static class |
JsonDiff.ListSetter |
static class |
JsonDiff.MapSetter |
static class |
JsonDiff.NoSetter |
static class |
JsonDiff.RemovedKey |
static interface |
JsonDiff.Setter |
static class |
JsonDiff.ValueDiff |
| Constructor and Description |
|---|
JsonDiff(JsonWithLocationsParser.ParsedJsonWithLocations leftObj,
JsonWithLocationsParser.ParsedJsonWithLocations rightObj) |
| Modifier and Type | Method and Description |
|---|---|
JsonDiff |
addDifference(JsonDiff.Difference difference) |
protected JsonObjectLocation |
contextLeft(Object o) |
protected JsonObjectLocation |
contextRight(Object o) |
JsonObjectLocation |
currentLeftContextLocation() |
protected String |
currentLeftPath() |
JsonObjectLocation |
currentRightContextLocation() |
protected String |
currentRightPath() |
com.google.common.collect.ImmutableList<JsonDiff.Difference> |
getDifferences() |
JsonWithLocationsParser.ParsedJsonWithLocations |
getLeftObj() |
JsonWithLocationsParser.ParsedJsonWithLocations |
getRightObj() |
protected JsonDiff |
goIn(String path) |
JsonDiff |
goIn(String left,
String right) |
protected JsonDiff |
goUp() |
boolean |
isSame() |
JsonDiff |
putContexts(JsonDiff.Setter leftSetter,
Object left,
JsonDiff.Setter rightSetter,
Object right) |
public JsonDiff(JsonWithLocationsParser.ParsedJsonWithLocations leftObj, JsonWithLocationsParser.ParsedJsonWithLocations rightObj)
public JsonWithLocationsParser.ParsedJsonWithLocations getLeftObj()
public JsonWithLocationsParser.ParsedJsonWithLocations getRightObj()
public boolean isSame()
protected JsonDiff goUp()
protected String currentLeftPath()
protected String currentRightPath()
public JsonDiff addDifference(JsonDiff.Difference difference)
public com.google.common.collect.ImmutableList<JsonDiff.Difference> getDifferences()
protected JsonObjectLocation contextLeft(Object o)
protected JsonObjectLocation contextRight(Object o)
public JsonDiff putContexts(JsonDiff.Setter leftSetter, Object left, JsonDiff.Setter rightSetter, Object right)
public JsonObjectLocation currentLeftContextLocation()
public JsonObjectLocation currentRightContextLocation()
Copyright © 2017. All Rights Reserved.