/** * Copy the contents of the source search object into a new search object. * All collections are copied into new collections, but the items in those * collections are not duplicated; they still point to the same objects. */ public static IMutableSearch copy(ISearch source) { return copy(source, new Search()); }
/** * Create a copy of this search. All collections are copied into new * collections, but them items in those collections are not duplicated; they * still point to the same objects. */ public Search copy() { Search dest = new Search(); SearchUtil.copy(this, dest); return dest; }