@Test public void cloneAndEqual() { BucketComparison bucketComparison1 = bucketComparison.clone(); assertThat(bucketComparison1, is(bucketComparison1)); }
@Override public BucketComparison clone() { BucketComparison cloned; try { cloned = (BucketComparison) super.clone(); } catch (CloneNotSupportedException e) { throw new AnalyticsException("BucketComparison clone not supported: " + e.getMessage(), e); } if (jointActionComparison != null) { cloned.setJointActionComparison(jointActionComparison.clone()); } if (actionComparisons != null) { Map<Event.Name, ActionComparisonStatistics> clonedActions = new HashMap<>(); for (Entry<Name, ActionComparisonStatistics> entry : actionComparisons.entrySet()) { clonedActions.put(entry.getKey(), entry.getValue().clone()); } cloned.setActionComparisons(clonedActions); } return cloned; }
BucketComparison implements Cloneable { @Override public BucketComparison clone() { BucketComparison cloned; try { cloned = (BucketComparison) super.clone(); } catch (CloneNotSupportedException e) { throw new AnalyticsException("BucketComparison clone not supported: " + e.getMessage(), e); } if (jointActionComparison != null) { cloned.setJointActionComparison(jointActionComparison.clone()); } if (actionComparisons != null) { Map<Event.Name, ActionComparisonStatistics> clonedActions = new HashMap<>(); for (Entry<Name, ActionComparisonStatistics> entry : actionComparisons.entrySet()) { clonedActions.put(entry.getKey(), entry.getValue().clone()); } cloned.setActionComparisons(clonedActions); } return cloned; } }
BucketComparison implements Cloneable { @Override public BucketComparison clone() { BucketComparison cloned; try { cloned = (BucketComparison) super.clone(); } catch (CloneNotSupportedException e) { throw new AnalyticsException("BucketComparison clone not supported: " + e.getMessage(), e); } if (jointActionComparison != null) { cloned.setJointActionComparison(jointActionComparison.clone()); } if (actionComparisons != null) { Map<Event.Name, ActionComparisonStatistics> clonedActions = new HashMap<>(); for (Entry<Name, ActionComparisonStatistics> entry : actionComparisons.entrySet()) { clonedActions.put(entry.getKey(), entry.getValue().clone()); } cloned.setActionComparisons(clonedActions); } return cloned; }  }
BucketComparison implements Cloneable { @Override public BucketComparison clone() { BucketComparison cloned; try { cloned = (BucketComparison) super.clone(); } catch (CloneNotSupportedException e) { throw new AnalyticsException("BucketComparison clone not supported: " + e.getMessage(), e); } if (jointActionComparison != null) { cloned.setJointActionComparison(jointActionComparison.clone()); } if (actionComparisons != null) { Map<Event.Name, ActionComparisonStatistics> clonedActions = new HashMap<>(); for (Entry<Name, ActionComparisonStatistics> entry : actionComparisons.entrySet()) { clonedActions.put(entry.getKey(), entry.getValue().clone()); } cloned.setActionComparisons(clonedActions); } return cloned; }  Bucket.Label getOtherLabel(); void setOtherLabel(Bucket.Label value); ComparisonStatistics getJointActionComparison(); void setJointActionComparison(ComparisonStatistics value); Map<Event.Name, ActionComparisonStatistics> getActionComparisons(); void setActionComparisons(Map<Event.Name, ActionComparisonStatistics> value); @JsonIgnore void addToActionComparisons(Event.Name actionName, ActionComparisonStatistics item); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); @Override BucketComparison clone(); }
BucketComparison implements Cloneable { @Override public BucketComparison clone() { BucketComparison cloned; try { cloned = (BucketComparison) super.clone(); } catch (CloneNotSupportedException e) { throw new AnalyticsException("BucketComparison clone not supported: " + e.getMessage(), e); } if (jointActionComparison != null) { cloned.setJointActionComparison(jointActionComparison.clone()); } if (actionComparisons != null) { Map<Event.Name, ActionComparisonStatistics> clonedActions = new HashMap<>(); for (Entry<Name, ActionComparisonStatistics> entry : actionComparisons.entrySet()) { clonedActions.put(entry.getKey(), entry.getValue().clone()); } cloned.setActionComparisons(clonedActions); } return cloned; }  Bucket.Label getOtherLabel(); void setOtherLabel(Bucket.Label value); ComparisonStatistics getJointActionComparison(); void setJointActionComparison(ComparisonStatistics value); Map<Event.Name, ActionComparisonStatistics> getActionComparisons(); void setActionComparisons(Map<Event.Name, ActionComparisonStatistics> value); @JsonIgnore void addToActionComparisons(Event.Name actionName, ActionComparisonStatistics item); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); @Override BucketComparison clone();  }