Class AppendArrayConflictStrategy
java.lang.Object
org.ghotibeaun.json.merge.strategies.AbstractConflictStrategy<JSONArray,Integer>
org.ghotibeaun.json.merge.strategies.AbstractJSONArrayConflictStrategy
org.ghotibeaun.json.merge.strategies.AppendArrayConflictStrategy
- All Implemented Interfaces:
ConflictStrategy<JSONArray,Integer>
,JSONArrayConflictStrategy
public class AppendArrayConflictStrategy extends AbstractJSONArrayConflictStrategy
-
Constructor Summary
Constructors Constructor Description AppendArrayConflictStrategy(MergeProcess mergeProcessor)
-
Method Summary
Methods inherited from class org.ghotibeaun.json.merge.strategies.AbstractConflictStrategy
getMergeProcessor
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ghotibeaun.json.merge.strategies.ConflictStrategy
getMergeProcessor
-
Constructor Details
-
AppendArrayConflictStrategy
-
-
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" valuepropertyValue
- either the key or index position of the valueprimaryValue
- the value from the Primary JSONNodesecondaryValue
- the value from the Secondary JSONNode
-