/** * Method to return a detached copy of the container. Recurses through the elements so that they * are likewise detached. * * @param state State for detachment process * @return The detached container */ public java.util.LinkedHashSet detachCopy(FetchPlanState state) { java.util.LinkedHashSet detached = new java.util.LinkedHashSet(); SCOUtils.detachCopyForCollection(ownerOP, toArray(), state, detached); return detached; }
/** * Method to return a detached copy of the container. Recurses through the elements so that they * are likewise detached. * * @param state State for detachment process * @return The detached container */ public java.util.PriorityQueue detachCopy(FetchPlanState state) { java.util.PriorityQueue detached = new java.util.PriorityQueue(); SCOUtils.detachCopyForCollection(ownerOP, toArray(), state, detached); return detached; }