Class JsonPatchDiff

  • All Implemented Interfaces:
    Serializable

    class JsonPatchDiff
    extends DiffBase
    Create a diff from a source and target JsonStructure
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private jakarta.json.spi.JsonProvider provider  
      private jakarta.json.JsonStructure source  
      private jakarta.json.JsonStructure target  
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonPatchDiff​(jakarta.json.spi.JsonProvider provider, jakarta.json.JsonStructure source, jakarta.json.JsonStructure target)  
    • Field Detail

      • provider

        private final jakarta.json.spi.JsonProvider provider
      • source

        private final jakarta.json.JsonStructure source
      • target

        private final jakarta.json.JsonStructure target
    • Constructor Detail

      • JsonPatchDiff

        JsonPatchDiff​(jakarta.json.spi.JsonProvider provider,
                      jakarta.json.JsonStructure source,
                      jakarta.json.JsonStructure target)
    • 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)