Class StopMergeStrategy

All Implemented Interfaces:
EntityMergeStrategy

public class StopMergeStrategy extends AbstractIdentifiableSingleEntityMergeStrategy<org.onebusaway.gtfs.model.Stop>
Entity merge strategy for handling Stop entities.
  • Constructor Details

    • StopMergeStrategy

      public StopMergeStrategy()
  • Method Details

    • replaceDuplicateEntry

      protected void replaceDuplicateEntry(GtfsMergeContext context, org.onebusaway.gtfs.model.Stop oldStop, org.onebusaway.gtfs.model.Stop newStop)
      Description copied from class: AbstractSingleEntityMergeStrategy
      If we've detected a duplicate for an entity in the source feed with some entity in the merged output feed, we want to replace all references to the old entity with the new merged entity. Sub-classes will override this method to provide logic specific to particular entity types, as it relates to updating entity references.
      Specified by:
      replaceDuplicateEntry in class AbstractSingleEntityMergeStrategy<org.onebusaway.gtfs.model.Stop>
      Parameters:
      context -
      oldStop - the old entity in the source feed that should be replaced
      newStop - the new entity in the output merged feed that duplicates the old entity