Package org.apache.johnzon.core
Class JsonPatchDiff
- java.lang.Object
-
- org.apache.johnzon.core.DiffBase
-
- org.apache.johnzon.core.JsonPatchDiff
-
- All Implemented Interfaces:
Serializable
class JsonPatchDiff extends DiffBase
Create a diff from a source and target JsonStructure
-
-
Constructor Summary
Constructors Constructor Description JsonPatchDiff(jakarta.json.spi.JsonProvider provider, jakarta.json.JsonStructure source, jakarta.json.JsonStructure target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) jakarta.json.JsonPatch
calculateDiff()
private void
diff(jakarta.json.JsonPatchBuilder patchBuilder, String basePath, jakarta.json.JsonValue source, jakarta.json.JsonValue target)
private void
diffJsonArray(jakarta.json.JsonPatchBuilder patchBuilder, String basePath, jakarta.json.JsonArray source, jakarta.json.JsonArray target)
private void
diffJsonObjects(jakarta.json.JsonPatchBuilder patchBuilder, String basePath, jakarta.json.JsonObject source, jakarta.json.JsonObject target)
-
Methods inherited from class org.apache.johnzon.core.DiffBase
isJsonArray, isJsonObject
-
-
-
-
Method Detail
-
calculateDiff
jakarta.json.JsonPatch calculateDiff()
-
diff
private void diff(jakarta.json.JsonPatchBuilder patchBuilder, String basePath, jakarta.json.JsonValue source, jakarta.json.JsonValue target)
-
diffJsonArray
private void diffJsonArray(jakarta.json.JsonPatchBuilder patchBuilder, String basePath, jakarta.json.JsonArray source, jakarta.json.JsonArray target)
-
diffJsonObjects
private void diffJsonObjects(jakarta.json.JsonPatchBuilder patchBuilder, String basePath, jakarta.json.JsonObject source, jakarta.json.JsonObject target)
-
-