コード例 #1
0
 private void addToAllByGlobalCoTerminusIdMap(AcGlobalCoTerminusAirport e) {
   Integer key = e.getGlobalCoTerminusId();
   JwList<AcGlobalCoTerminusAirport> v = _allByGlobalCoTerminusIdMap.get(key);
   if (v == null) {
     v = new JwList<AcGlobalCoTerminusAirport>();
     _allByGlobalCoTerminusIdMap.put(key, v);
   }
   v.add(e);
 }
コード例 #2
0
 private JwList<AcScheduledFlightUploadErrorVo> fillErrors(JwList<AcScheduledFlightUpload> v) {
   JwList<AcScheduledFlightUploadErrorVo> r = new JwList<AcScheduledFlightUploadErrorVo>(v.size());
   // we need some sort of starting "date" - we don't care what it is or what timezone it uses
   JwDate date = AcGlobals.nowUtc().getDate().getCopy();
   JwMap<String, AcAirport> airportCache = new JwMap<String, AcAirport>();
   for (AcScheduledFlightUpload o : v) {
     AcScheduledFlightUploadErrorVo e = new AcScheduledFlightUploadErrorVo();
     e.setScheduledFlightUpload(o);
     validateDates(e);
     validateTimes(date, airportCache, e);
     r.add(e);
   }
   return r;
 }
コード例 #3
0
 private void loadAllAvailableList() {
   Collection<AcGlobalTimeZone> v = getMap().values();
   _allAvailableList = new JwList<AcGlobalTimeZone>();
   for (AcGlobalTimeZone e : v) if (e.isAvailable()) _allAvailableList.add(e);
   _allAvailableList.setReadOnly();
 }
コード例 #4
0
 private void loadAllAvailableList() {
   Collection<AcGlobalCoTerminusAirport> v = getMap().values();
   _allAvailableList = new JwList<AcGlobalCoTerminusAirport>();
   for (AcGlobalCoTerminusAirport e : v) if (e.isAvailable()) _allAvailableList.add(e);
   _allAvailableList.setReadOnly();
 }