mirror of
https://github.com/opentripplanner/OpenTripPlanner.git
synced 2026-04-03 15:26:08 +02:00
20 lines
635 B
Java
20 lines
635 B
Java
package org.opentripplanner.graph_builder.issues;
|
|
|
|
import gnu.trove.list.TIntList;
|
|
import org.opentripplanner.graph_builder.issue.api.DataImportIssue;
|
|
import org.opentripplanner.transit.model.timetable.Trip;
|
|
|
|
public record RepeatedStops(Trip trip, TIntList removedStopSequences) implements DataImportIssue {
|
|
private static final String FMT =
|
|
"Trip %s visits stops repeatedly. Removed duplicates at stop sequence numbers %s.";
|
|
|
|
@Override
|
|
public String getMessage() {
|
|
return String.format(FMT, trip.getId(), removedStopSequences);
|
|
}
|
|
|
|
@Override
|
|
public int getPriority() {
|
|
return removedStopSequences.size();
|
|
}
|
|
}
|