/** Return a deep copy of this object */ public SegmentItem clone() { SegmentItem copy; synchronized(this) { boolean tmpLock = locked; locked = false; copy = (SegmentItem) super.clone(); locked = tmpLock; copy.locked = tmpLock; } return copy; }
/** Returns a deep copy of this */ @Override public QueryTree clone() { QueryTree clone = (QueryTree) super.clone(); fixClonedConnectivityReferences(clone); return clone; }