public static JwMap<Integer, AcDomesticCandidateRouteOffer> toIdMap( Collection<AcDomesticCandidateRouteOffer> v) { JwMap<Integer, AcDomesticCandidateRouteOffer> m = new JwMap<Integer, AcDomesticCandidateRouteOffer>(); for (AcDomesticCandidateRouteOffer e : v) m.put(e.getId(), e); return m; }
public static JwMap<Integer, AcUspsDomesticSkeletonRouteOffer> toIdMap( Collection<AcUspsDomesticSkeletonRouteOffer> v) { JwMap<Integer, AcUspsDomesticSkeletonRouteOffer> m = new JwMap<Integer, AcUspsDomesticSkeletonRouteOffer>(); for (AcUspsDomesticSkeletonRouteOffer e : v) m.put(e.getId(), e); return m; }
private AcAirport getAirport(JwMap<String, AcAirport> airportCache, String code) { AcAirport e = airportCache.get(code); if (e == null) { e = getAccess().getAirportDb().getAirport(code); airportCache.put(code, e); } return e; }