4445464748495051525354
if(station_uic == null || station_uic.isEmpty()) { for(List<TheoricalTrainData> l : trains.values()) { //data.addAll(l); for(TheoricalTrainData ttd : l) { Paris_S p_s = new Paris_S(); p_s.update(selection, ttd); json.add(p_s); } } } else {
5354555657585960616263
} else { //data = trains.get(station_uic); for(TheoricalTrainData ttd : trains.get(station_uic)) { Paris_S p_s = new Paris_S(); p_s.update(selection, ttd); json.add(p_s); } } //Collections.sort(data); Collections.sort(json);
4243444546474849505152
if(paris != null && !paris.isEmpty()) { List<GareSelection> selection = (List<GareSelection>) request.getAttribute("gares_selection"); List<Paris_S> json_p = new ArrayList<Paris_S>(); for(Pari p : paris) { Paris_S ps = new Paris_S(); ps.update(selection, p); json_p.add(ps); } json.add(json_p); } else {
5556575859606162636465
if(paris_historique != null && !paris_historique.isEmpty()) { List<GareSelection> selection = (List<GareSelection>) request.getAttribute("gares_selection"); List<Paris_S> json_ph = new ArrayList<Paris_S>(); for(PariHistorique p : paris_historique) { Paris_S ps = new Paris_S(); ps.update(selection, p); json_ph.add(ps); } json.add(json_ph); } else {