Interface IFeatureChange

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  IFeatureChange.GeometryChange
      Implement on IFeatureChange objects that change geometry
      static interface  IFeatureChange.TaggedChange
      Implement 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 entity
      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
    • 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 changed
        changes - 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)