Interface IFeatureChange
-
- All Known Implementing Classes:
RemoveTagFeatureChange,ReplaceTagFeatureChange
public interface IFeatureChangeAn interface to help modify a complete entity. This is mostly useful to create a composite FeatureChange.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIFeatureChange.GeometryChangeImplement on IFeatureChange objects that change geometrystatic interfaceIFeatureChange.TaggedChangeImplement on IFeatureChange objects that change tags
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends org.openstreetmap.atlas.geography.atlas.complete.CompleteEntity<T>>
org.openstreetmap.atlas.geography.atlas.complete.CompleteEntity<T>apply(org.openstreetmap.atlas.geography.atlas.complete.CompleteEntity<T> entity)Apply a change to a complete entitystatic org.openstreetmap.atlas.geography.atlas.change.FeatureChangecreateFeatureChange(java.util.function.BiFunction<org.openstreetmap.atlas.geography.atlas.items.AtlasEntity,org.openstreetmap.atlas.geography.atlas.Atlas,org.openstreetmap.atlas.geography.atlas.change.FeatureChange> changeCreator, org.openstreetmap.atlas.geography.atlas.items.AtlasEntity object, java.util.Collection<IFeatureChange> changes)Create a feature change from a collection of changes
-
-
-
Method Detail
-
createFeatureChange
static org.openstreetmap.atlas.geography.atlas.change.FeatureChange createFeatureChange(java.util.function.BiFunction<org.openstreetmap.atlas.geography.atlas.items.AtlasEntity,org.openstreetmap.atlas.geography.atlas.Atlas,org.openstreetmap.atlas.geography.atlas.change.FeatureChange> changeCreator, org.openstreetmap.atlas.geography.atlas.items.AtlasEntity object, java.util.Collection<IFeatureChange> changes)Create a feature change from a collection of changes- Parameters:
changeCreator- The method to use to create the feature change (e.g.FeatureChange.add(AtlasEntity, Atlas))object- The object that needs to be changedchanges- The changes to make to the object- Returns:
- The FeatureChange to be applied. Currently only applies to tags.
-
apply
<T extends org.openstreetmap.atlas.geography.atlas.complete.CompleteEntity<T>> org.openstreetmap.atlas.geography.atlas.complete.CompleteEntity<T> apply(org.openstreetmap.atlas.geography.atlas.complete.CompleteEntity<T> entity)
Apply a change to a complete entity- Type Parameters:
T- The type of the complete entity- Parameters:
entity- The entity that will be changed- Returns:
- The new CompleteEntity (may be the entity from the parameter)
-
-