@Test public void testClone() { ExperimentCumulativeCounts clonedCounter = counter.clone(); assertThat(clonedCounter.getDays(), equalTo(days)); }
@Override public ExperimentCumulativeCounts clone() { ExperimentCumulativeCounts cloned; try { cloned = (ExperimentCumulativeCounts) super.clone(); } catch (CloneNotSupportedException e) { throw new AnalyticsException("ExperimentCumulativeCounts clone not supported: " + e.getMessage(), e); } if (days != null) { List<DailyCounts> clonedDays = new ArrayList<DailyCounts>(); for (DailyCounts day : days) { clonedDays.add(day.clone()); } cloned.setDays(clonedDays); } return cloned; }
ExperimentCumulativeCounts implements Cloneable { @Override public ExperimentCumulativeCounts clone() { ExperimentCumulativeCounts cloned; try { cloned = (ExperimentCumulativeCounts) super.clone(); } catch (CloneNotSupportedException e) { throw new AnalyticsException("ExperimentCumulativeCounts clone not supported: " + e.getMessage(), e); } if (days != null) { List<DailyCounts> clonedDays = new ArrayList<DailyCounts>(); for (DailyCounts day : days) { clonedDays.add(day.clone()); } cloned.setDays(clonedDays); } return cloned; } }
ExperimentCumulativeCounts implements Cloneable { @Override public ExperimentCumulativeCounts clone() { ExperimentCumulativeCounts cloned; try { cloned = (ExperimentCumulativeCounts) super.clone(); } catch (CloneNotSupportedException e) { throw new AnalyticsException("ExperimentCumulativeCounts clone not supported: " + e.getMessage(), e); } if (days != null) { List<DailyCounts> clonedDays = new ArrayList<DailyCounts>(); for (DailyCounts day : days) { clonedDays.add(day.clone()); } cloned.setDays(clonedDays); } return cloned; }  }
ExperimentCumulativeCounts implements Cloneable { @Override public ExperimentCumulativeCounts clone() { ExperimentCumulativeCounts cloned; try { cloned = (ExperimentCumulativeCounts) super.clone(); } catch (CloneNotSupportedException e) { throw new AnalyticsException("ExperimentCumulativeCounts clone not supported: " + e.getMessage(), e); } if (days != null) { List<DailyCounts> clonedDays = new ArrayList<DailyCounts>(); for (DailyCounts day : days) { clonedDays.add(day.clone()); } cloned.setDays(clonedDays); } return cloned; }  @JsonIgnore void addDays(DailyCounts day); List<DailyCounts> getDays(); void setDays(List<DailyCounts> value); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); @Override ExperimentCumulativeCounts clone(); }
ExperimentCumulativeCounts implements Cloneable { @Override public ExperimentCumulativeCounts clone() { ExperimentCumulativeCounts cloned; try { cloned = (ExperimentCumulativeCounts) super.clone(); } catch (CloneNotSupportedException e) { throw new AnalyticsException("ExperimentCumulativeCounts clone not supported: " + e.getMessage(), e); } if (days != null) { List<DailyCounts> clonedDays = new ArrayList<DailyCounts>(); for (DailyCounts day : days) { clonedDays.add(day.clone()); } cloned.setDays(clonedDays); } return cloned; }  @JsonIgnore void addDays(DailyCounts day); List<DailyCounts> getDays(); void setDays(List<DailyCounts> value); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); @Override ExperimentCumulativeCounts clone();  }