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 void collectIdsOn( Collection<Integer> target, Collection<AcDomesticCandidateRouteOffer> source) { for (AcDomesticCandidateRouteOffer 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 isSameIgnoringKey(AcDomesticCandidateRouteOffer e) { if (!JwUtility.isEqual(getDomesticCandidateRouteId(), e.getDomesticCandidateRouteId())) return false; if (!JwUtility.isEqual(getLastModifiedUtcTs(), e.getLastModifiedUtcTs())) return false; if (!JwUtility.isEqual(getSerialNumber(), e.getSerialNumber())) return false; if (!JwUtility.isEqual(getStatus(), e.getStatus())) return false; if (!JwUtility.isEqual(getType(), e.getType())) return false; if (!JwUtility.isEqual(getAcknowledge(), e.getAcknowledge())) return false; if (!JwUtility.isEqual(getFrequency(), e.getFrequency())) return false; if (!JwUtility.isEqual(getCapacity(), e.getCapacity())) return false; if (!JwUtility.isEqual( getParentDomesticCandidateRouteOfferId(), e.getParentDomesticCandidateRouteOfferId())) return false; if (!JwUtility.isEqual( getChildDomesticCandidateRouteOfferId(), e.getChildDomesticCandidateRouteOfferId())) return false; if (!JwUtility.isEqual(getError(), e.getError())) return false; return true; }
public boolean isSame(AcDomesticCandidateRouteOffer e) { if (!JwUtility.isEqual(getId(), e.getId())) return false; return isSameIgnoringKey(e); }