Package servlet.utilities

Examples of servlet.utilities.Paris_S


      String station_uic = (String) request.getAttribute("station_uic");
      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 {
        //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);
View Full Code Here


    List<List<Paris_S>> json = new ArrayList<List<Paris_S>>();
    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 {
      json.add(new ArrayList<Paris_S>());
    }
    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 {
View Full Code Here

TOP

Related Classes of servlet.utilities.Paris_S

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.