@Override protected Object clone() throws CloneNotSupportedException { final MagicMatcher clone = new MagicMatcher(); clone.setMatch((MagicMatch) this.match.clone()); final Iterator<MagicMatcher> i = this.subMatchers.iterator(); final ArrayList<MagicMatcher> sub = new ArrayList<>(); while (i.hasNext()) { final MagicMatcher m = i.next(); sub.add((MagicMatcher) m.clone()); } clone.setSubMatchers(sub); return clone; }
/** * DOCUMENT ME! * * @return DOCUMENT ME! * * @throws CloneNotSupportedException DOCUMENT ME! */ protected Object clone() throws CloneNotSupportedException { MagicMatcher clone = new MagicMatcher(); clone.setMatch((MagicMatch) match.clone()); Iterator i = subMatchers.iterator(); ArrayList sub = new ArrayList(); while (i.hasNext()) { MagicMatcher m = (MagicMatcher) i.next(); sub.add(m.clone()); } clone.setSubMatchers(sub); return clone; } }
/** * DOCUMENT ME! * * @return DOCUMENT ME! * * @throws CloneNotSupportedException DOCUMENT ME! */ protected MagicMatcher clone() throws CloneNotSupportedException { MagicMatcher clone = new MagicMatcher(); clone.setMatch((MagicMatch) match.clone()); Iterator<MagicMatcher> i = subMatchers.iterator(); List<MagicMatcher> sub = new ArrayList<MagicMatcher>(); while (i.hasNext()) { MagicMatcher m = (MagicMatcher) i.next(); sub.add(m.clone()); } clone.setSubMatchers(sub); return clone; } }
.clone() : null; } catch (CloneNotSupportedException e) {
.clone() : null; } catch (CloneNotSupportedException e) {