@Test public void testClone() { DailyCounts clonedCounter = counter.clone(); assertThat(clonedCounter.getDate(), equalTo(date)); assertThat(clonedCounter.getCumulative(), equalTo(cumulative)); assertThat(clonedCounter.getPerDay(), equalTo(perDay)); assertThat(counter, equalTo(clonedCounter)); assertThat(clonedCounter.hashCode(), equalTo(counter.hashCode())); }
@Override public DailyCounts clone() { DailyCounts cloned; try { cloned = (DailyCounts) super.clone(); } catch (CloneNotSupportedException e) { throw new AnalyticsException("DailyCounts clone not supported: " + e.getMessage(), e); } if (perDay != null) { cloned.perDay = perDay.clone(); } if (cumulative != null) { cloned.cumulative = cumulative.clone(); } return cloned; }
DailyCounts extends DailyBase implements Cloneable { @Override public DailyCounts clone() { DailyCounts cloned; try { cloned = (DailyCounts) super.clone(); } catch (CloneNotSupportedException e) { throw new AnalyticsException("DailyCounts clone not supported: " + e.getMessage(), e); } if (perDay != null) { cloned.perDay = perDay.clone(); } if (cumulative != null) { cloned.cumulative = cumulative.clone(); } return cloned; } }
DailyCounts extends DailyBase implements Cloneable { @Override public DailyCounts clone() { DailyCounts cloned; try { cloned = (DailyCounts) super.clone(); } catch (CloneNotSupportedException e) { throw new AnalyticsException("DailyCounts clone not supported: " + e.getMessage(), e); } if (perDay != null) { cloned.perDay = perDay.clone(); } if (cumulative != null) { cloned.cumulative = cumulative.clone(); } return cloned; } protected  DailyCounts(Builder builder); }
DailyCounts extends DailyBase implements Cloneable { @Override public DailyCounts clone() { DailyCounts cloned; try { cloned = (DailyCounts) super.clone(); } catch (CloneNotSupportedException e) { throw new AnalyticsException("DailyCounts clone not supported: " + e.getMessage(), e); } if (perDay != null) { cloned.perDay = perDay.clone(); } if (cumulative != null) { cloned.cumulative = cumulative.clone(); } return cloned; } protected  DailyCounts(Builder builder); ExperimentCounts getPerDay(); ExperimentCounts getCumulative(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); @Override DailyCounts clone(); }
DailyCounts extends DailyBase implements Cloneable { @Override public DailyCounts clone() { DailyCounts cloned; try { cloned = (DailyCounts) super.clone(); } catch (CloneNotSupportedException e) { throw new AnalyticsException("DailyCounts clone not supported: " + e.getMessage(), e); } if (perDay != null) { cloned.perDay = perDay.clone(); } if (cumulative != null) { cloned.cumulative = cumulative.clone(); } return cloned; } protected  DailyCounts(Builder builder); ExperimentCounts getPerDay(); ExperimentCounts getCumulative(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); @Override DailyCounts clone();  }