Class DeduplicateArrayConflictStrategy

All Implemented Interfaces:
ConflictStrategy<JSONArray,​Integer>, JSONArrayConflictStrategy

public class DeduplicateArrayConflictStrategy
extends AbstractJSONArrayConflictStrategy
  • Constructor Details

    • DeduplicateArrayConflictStrategy

      public DeduplicateArrayConflictStrategy​(MergeProcess mergeProcessor)
  • Method Details

    • apply

      public void apply​(JSONArray context, Integer propertyValue, JSONValue<?> primaryValue, JSONValue<?> secondaryValue)
      Description copied from interface: ConflictStrategy
      Apply a conflict strategy to a given JSONNode context
      Parameters:
      context - the JSONNode that receives the "resolved" value
      propertyValue - either the key or index position of the value
      primaryValue - the value from the Primary JSONNode
      secondaryValue - the value from the Secondary JSONNode