Class AlwaysPickLeftStrategy
- java.lang.Object
-
- org.openstreetmap.atlas.mutator.configuration.parsing.mergeforgiveness.strategies.AlwaysPickLeftStrategy
-
- All Implemented Interfaces:
java.io.Serializable,MergeForgivenessStrategy
public class AlwaysPickLeftStrategy extends java.lang.Object implements MergeForgivenessStrategy
ThisMergeForgivenessStrategyalways chooses the leftFeatureChange.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AlwaysPickLeftStrategy()
-
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
-
-