244245246247248249250251252
serviceId++; } } } //Sort all services. Collections.sort(allServices, new SortedServices()); //Return the services. return allServices; }
454455456457458459460461
if ( isOutwardService(myService.getStop(0).getStopName(), myService.getStop(1).getStopName()) ) { outgoingServices.add(myService); } } } Collections.sort(outgoingServices, new SortedServices()); return outgoingServices; }
508509510511512513514515
if ( !isOutwardService(myService.getStop(0).getStopName(), myService.getStop(1).getStopName()) ) { returnServices.add(myService); } } } Collections.sort(returnServices, new SortedServices()); return returnServices; }