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()); } }
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; }
public boolean isSame(AcUspsDomesticSkeletonRouteOffer e) { if (!JwUtility.isEqual(getId(), e.getId())) return false; return isSameIgnoringKey(e); }