This commit is contained in:
Victor Shcherb 2020-05-16 17:18:58 +02:00
parent a52767bdb3
commit a00011693a

View file

@ -12,6 +12,7 @@ import java.util.List;
public class TransportStop extends MapObject {
private static final int DELETED_STOP = -1;
public static final String MISSING_STOP_NAME = "#Missing Stop";
private int[] referencesToRoutes = null;
private long[] deletedRoutesIds;
@ -22,7 +23,6 @@ public class TransportStop extends MapObject {
private List<TransportStopExit> exits;
private List<TransportRoute> routes = null;
private LinkedHashMap<String, int[]> referencesToRoutesMap;
private boolean missingStop = false;
private TransportStopAggregated transportStopAggregated;
@ -32,16 +32,8 @@ public class TransportStop extends MapObject {
return routes;
}
@Override
public void setName(String name) {
super.setName(name);
if (name != null && name.equals("#Missing Stop")) {
missingStop = true;
}
}
public boolean isMissingStop() {
return missingStop;
return MISSING_STOP_NAME.equals(getName());
}
public LinkedHashMap<String, int[]> getReferencesToRoutesMap() {