コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }