/** * Creates a clone of this instance, and clears cached state to be not shared with the original. * * @return a clone of this instance */ @Override protected HtmlPage clone() { final HtmlPage result = (HtmlPage) super.clone(); result.elementWithFocus_ = null; result.idMap_ = Collections.synchronizedMap(new HashMap<String, SortedSet<DomElement>>()); result.nameMap_ = Collections.synchronizedMap(new HashMap<String, SortedSet<DomElement>>()); return result; }
/** * Creates a clone of this instance, and clears cached state * to be not shared with the original. * * @return a clone of this instance */ @Override protected HtmlPage clone() { final HtmlPage result = (HtmlPage) super.clone(); result.elementWithFocus_ = null; result.idMap_ = new HashMap<String, List<HtmlElement>>(); result.nameMap_ = new HashMap<String, List<HtmlElement>>(); return result; }
/** * Creates a clone of this instance, and clears cached state * to be not shared with the original. * * @return a clone of this instance */ @Override protected HtmlPage clone() { final HtmlPage result = (HtmlPage) super.clone(); result.elementWithFocus_ = null; result.idMap_ = new HashMap<String, List<HtmlElement>>(); result.nameMap_ = new HashMap<String, List<HtmlElement>>(); return result; }
/** * Creates a clone of this instance, and clears cached state * to be not shared with the original. * * @return a clone of this instance */ @Override protected HtmlPage clone() { final HtmlPage result = (HtmlPage) super.clone(); result.elementWithFocus_ = null; result.idMap_ = new HashMap<String, List<HtmlElement>>(); result.nameMap_ = new HashMap<String, List<HtmlElement>>(); return result; }
/** * Creates a clone of this instance, and clears cached state to be not shared with the original. * * @return a clone of this instance */ @Override protected HtmlPage clone() { final HtmlPage result = (HtmlPage) super.clone(); result.elementWithFocus_ = null; result.idMap_ = Collections.synchronizedMap(new HashMap<String, SortedSet<DomElement>>()); result.nameMap_ = Collections.synchronizedMap(new HashMap<String, SortedSet<DomElement>>()); return result; }