Class TakeLowerNodeIdentifierStrategy
- java.lang.Object
-
- org.openstreetmap.atlas.mutator.configuration.parsing.mergeforgiveness.strategies.TakeLowerNodeIdentifierStrategy
-
- All Implemented Interfaces:
java.io.Serializable,MergeForgivenessStrategy
public class TakeLowerNodeIdentifierStrategy extends java.lang.Object implements MergeForgivenessStrategy
AMergeForgivenessStrategywhich returns aFeatureChangewhich takes the lower start or end node identifier when two edges conflict on that value. This protects against mutations that generate nodes that already exist in the underlying atlas.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TakeLowerNodeIdentifierStrategy()
-
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
-
-