Class GenericJSONMerger


  • public class GenericJSONMerger
    extends java.lang.Object
    JSON Merger for generic purposes
    • Constructor Summary

      Constructors 
      Constructor Description
      GenericJSONMerger​(com.google.gson.JsonObject base, com.google.gson.JsonObject patch)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.gson.JsonObject merge​(boolean patchOverrides)
      Calls the recursive method
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GenericJSONMerger

        public GenericJSONMerger​(com.google.gson.JsonObject base,
                                 com.google.gson.JsonObject patch)
        Constructor
        Parameters:
        base - existent file
        patch - file to patch
    • Method Detail

      • merge

        public com.google.gson.JsonObject merge​(boolean patchOverrides)
        Calls the recursive method
        Parameters:
        patchOverrides - states if the merge must override the base or not
        Returns:
        the JSON resulting from the merge