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); }
public JwList<AcGlobalCoTerminusAirport> getAllByGlobalCoTerminusId(Integer globalCoTerminusId) { lock(); try { Integer key = globalCoTerminusId; JwList<AcGlobalCoTerminusAirport> v = getAllByGlobalCoTerminusIdMap().get(key); if (v == null) return JwList.createEmpty(); return v; } finally { unlock(); } }
// 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(); }
private void loadAllAvailableList() { Collection<AcGlobalCoTerminusAirport> v = getMap().values(); _allAvailableList = new JwList<AcGlobalCoTerminusAirport>(); for (AcGlobalCoTerminusAirport e : v) if (e.isAvailable()) _allAvailableList.add(e); _allAvailableList.setReadOnly(); }
private void setAllByGlobalCoTerminusIdMapReadOnly() { for (JwList<AcGlobalCoTerminusAirport> v : _allByGlobalCoTerminusIdMap.values()) v.setReadOnly(); }