Fix transport stop compare
This commit is contained in:
parent
221dc057e7
commit
0ce5b2f212
1 changed files with 9 additions and 0 deletions
|
@ -61,6 +61,15 @@ public class TransportStop extends MapObject {
|
|||
this.deletedRoutesIds = deletedRoutesIds;
|
||||
}
|
||||
|
||||
public void addRouteId(long routeId) {
|
||||
routesIds = Algorithms.addToArrayL(routesIds, routeId, true);
|
||||
}
|
||||
|
||||
public void addDeletedRouteId(long routeId) {
|
||||
deletedRoutesIds = Algorithms.addToArrayL(deletedRoutesIds, routeId, true);
|
||||
}
|
||||
|
||||
|
||||
public boolean isRouteDeleted(long routeId) {
|
||||
return deletedRoutesIds != null && Arrays.binarySearch(deletedRoutesIds, routeId) >= 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue