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