Interface MergeForgivenessStrategy
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
AlwaysPickLeftStrategy,PickRemoveOverAddStrategy,PrioritizeTagStrategy,TakeLowerNodeIdentifierStrategy
public interface MergeForgivenessStrategy extends java.io.SerializableTheMergeForgivenessStrategyinterface defines a strategy for resolvingFeatureChangemerge conflicts. Implementing classes must provide a method that decides whichFeatureChangeto choose in the face of a merge conflict.
-
-
Method Summary
All Methods Instance Methods Abstract 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
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)Resolve a merge conflict between twoFeatureChanges and return a new, validFeatureChangethat represents a merge between the two.- Parameters:
left- the leftFeatureChangeright- the rightFeatureChangeconfiguration- the configuration for the resolution- Returns:
- the resolved
FeatureChange
-
-