public static JwList<String> getNumbersFromWebKeys(JwList<String> webKeys) { JwList<String> v = new JwList<String>(); if (webKeys == null) return v; if (webKeys.isEmpty()) return v; for (String e : webKeys) v.add(getNumberFromWebKey(e)); return v; }
public static JwList<Integer> getIdsFromWebKeys(JwList<String> webKeys) { JwList<Integer> v = new JwList<Integer>(); if (webKeys == null) return v; if (webKeys.isEmpty()) return v; for (String e : webKeys) v.add(getIdFromWebKey(e)); return v; }
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); }
private JwList<String> getLocalFilenames(String path) { File f = new File(path); if (!f.exists()) return new JwList<String>(); JwList<String> v = new JwList<String>(); for (File e : f.listFiles()) { if (e.isFile()) v.add(e.getName()); } return v; }
private AcEdiUpuResdit11ReceptacleList _createReceptacleList() { if (_receptacleLists.size() >= MAX_RECEPTACLE_LISTS) JwUtility.error( "Attempted to create %s when already at capacity. Max capacity %s", JwUtility.formatShortClassName(AcEdiUpuResdit11ReceptacleList.class), MAX_RECEPTACLE_LISTS); AcEdiUpuResdit11ReceptacleList x = new AcEdiUpuResdit11ReceptacleList(); _receptacleLists.add(x); return x; }
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; }
public JwSqlInsert _checkAndComposeInsert(AcDomesticCandidateRouteTmp e) { JwList<AcDomesticCandidateRouteTmp> v; v = new JwList<AcDomesticCandidateRouteTmp>(); v.add(e); return _checkAndComposeInsert(v); }
// collect ids in order given public static JwList<Integer> collectScheduledFlightCalendarIds( JwList<AcMultiSectorScheduledFlightLeg> v) { JwList<Integer> ids = new JwList<Integer>(); for (AcMultiSectorScheduledFlightLeg e : v) ids.add(e.getScheduledFlightCalendarId()); return ids; }
private void loadAllAvailableList() { Collection<AcGlobalTimeZone> v = getMap().values(); _allAvailableList = new JwList<AcGlobalTimeZone>(); for (AcGlobalTimeZone e : v) if (e.isAvailable()) _allAvailableList.add(e); _allAvailableList.setReadOnly(); }
public JwSqlInsert _checkAndComposeInsert(AcMobileProfile e) { JwList<AcMobileProfile> v; v = new JwList<AcMobileProfile>(); v.add(e); return _checkAndComposeInsert(v); }
private JwList<String> getMissingFilenames( JwList<String> sourceFilenames, JwList<String> targetFilenames) { JwList<String> v = new JwList<String>(); for (String e : sourceFilenames) if (!targetFilenames.contains(e)) v.add(e); return v; }
public JwSqlInsert _checkAndComposeInsert(AcUploadDownloadFile e) { JwList<AcUploadDownloadFile> v; v = new JwList<AcUploadDownloadFile>(); v.add(e); return _checkAndComposeInsert(v, false); }
public JwSqlInsert _checkAndComposeInsert(AcScheduledFlightUpload e) { JwList<AcScheduledFlightUpload> v; v = new JwList<AcScheduledFlightUpload>(); v.add(e); return _checkAndComposeInsert(v, false); }
private void loadAllAvailableList() { Collection<AcGlobalCoTerminusAirport> v = getMap().values(); _allAvailableList = new JwList<AcGlobalCoTerminusAirport>(); for (AcGlobalCoTerminusAirport e : v) if (e.isAvailable()) _allAvailableList.add(e); _allAvailableList.setReadOnly(); }
public JwSqlInsert _checkAndComposeInsert(AcGlobalAuditLog e) { JwList<AcGlobalAuditLog> v; v = new JwList<AcGlobalAuditLog>(); v.add(e); return _checkAndComposeInsert(v, false); }
public boolean composeSg5(AcEdiSegmentAbstract segment, JwList<AcEdiSegmentAbstract> segments) { AcEdiUpuResdit10Sg5Model sg5Model = new AcEdiUpuResdit10Sg5Model(); sg5Model.compose(segment, segments); _sg5Models.add(sg5Model); return true; }
public void add(AcEdiUpuResdit11ReceptacleList x) { _receptacleLists.add(x); }