public CPListElement copy() { CPListElement result= new CPListElement(); result.fProject= fProject; result.fEntryKind= fEntryKind; result.fPath= fPath; result.fOrginalPath= fOrginalPath; result.fResource= fResource; result.fIsExported= fIsExported; result.fIsMissing= fIsMissing; result.fParentContainer= fParentContainer; result.fCachedEntry= null; result.fChildren= new ArrayList<>(fChildren.size()); for (Iterator<Object> iterator= fChildren.iterator(); iterator.hasNext();) { Object child= iterator.next(); if (child instanceof CPListElement) { result.fChildren.add(((CPListElement)child).copy()); } else { result.fChildren.add(((CPListElementAttribute)child).copy()); } } result.fLinkTarget= fLinkTarget; result.fOrginalLinkTarget= fOrginalLinkTarget; return result; }
public CPListElement copy() { CPListElement result= new CPListElement(); result.fProject= fProject; result.fEntryKind= fEntryKind; result.fPath= fPath; result.fOrginalPath= fOrginalPath; result.fResource= fResource; result.fIsExported= fIsExported; result.fIsMissing= fIsMissing; result.fParentContainer= fParentContainer; result.fCachedEntry= null; result.fChildren= new ArrayList(fChildren.size()); for (Iterator iterator= fChildren.iterator(); iterator.hasNext();) { Object child= iterator.next(); if (child instanceof CPListElement) { result.fChildren.add(((CPListElement)child).copy()); } else { result.fChildren.add(((CPListElementAttribute)child).copy()); } } result.fLinkTarget= fLinkTarget; result.fOrginalLinkTarget= fOrginalLinkTarget; return result; }
public CPListElement copy() { CPListElement result= new CPListElement(); result.fProject= fProject; result.fEntryKind= fEntryKind; result.fPath= fPath; result.fOrginalPath= fOrginalPath; result.fResource= fResource; result.fIsExported= fIsExported; result.fIsMissing= fIsMissing; result.fParentContainer= fParentContainer; result.fCachedEntry= null; result.fChildren= new ArrayList<>(fChildren.size()); for (Iterator<Object> iterator= fChildren.iterator(); iterator.hasNext();) { Object child= iterator.next(); if (child instanceof CPListElement) { result.fChildren.add(((CPListElement)child).copy()); } else { result.fChildren.add(((CPListElementAttribute)child).copy()); } } result.fLinkTarget= fLinkTarget; result.fOrginalLinkTarget= fOrginalLinkTarget; return result; }