コード例 #1
0
 public static void collectIdsOn(
     Collection<Integer> target, Collection<AcUspsDomesticSkeletonRouteOffer> source) {
   for (AcUspsDomesticSkeletonRouteOffer e : source) {
     if (e == null) continue;
     Integer id = e.getId();
     if (id == null) continue;
     if (target.contains(id)) continue;
     target.add(e.getId());
   }
 }
コード例 #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
 public boolean isSame(AcUspsDomesticSkeletonRouteOffer e) {
   if (!JwUtility.isEqual(getId(), e.getId())) return false;
   return isSameIgnoringKey(e);
 }