Class PickRemoveOverAddStrategy
- java.lang.Object
-
- org.openstreetmap.atlas.mutator.configuration.parsing.mergeforgiveness.strategies.PickRemoveOverAddStrategy
-
- All Implemented Interfaces:
java.io.Serializable,MergeForgivenessStrategy
public class PickRemoveOverAddStrategy extends java.lang.Object implements MergeForgivenessStrategy
ThisMergeForgivenessStrategyalways tries to choose aChangeType.REMOVEFeatureChangeover aChangeType.ADD*FeatureChange.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PickRemoveOverAddStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openstreetmap.atlas.geography.atlas.change.FeatureChangeresolve(org.openstreetmap.atlas.geography.atlas.change.FeatureChange left, org.openstreetmap.atlas.geography.atlas.change.FeatureChange right, java.util.Map<java.lang.String,java.io.Serializable> configuration)Resolve a merge conflict between twoFeatureChanges and return a new, validFeatureChangethat represents a merge between the two.
-
-
-
Method Detail
-
resolve
public org.openstreetmap.atlas.geography.atlas.change.FeatureChange resolve(org.openstreetmap.atlas.geography.atlas.change.FeatureChange left, org.openstreetmap.atlas.geography.atlas.change.FeatureChange right, java.util.Map<java.lang.String,java.io.Serializable> configuration)Description copied from interface:MergeForgivenessStrategyResolve a merge conflict between twoFeatureChanges and return a new, validFeatureChangethat represents a merge between the two.- Specified by:
resolvein interfaceMergeForgivenessStrategy- Parameters:
left- the leftFeatureChangeright- the rightFeatureChangeconfiguration- the configuration for the resolution- Returns:
- the resolved
FeatureChange
-
-