List of usage examples for java.lang CloneNotSupportedException getMessage
public String getMessage()
From source file:com.intuit.wasabi.analyticsobjects.counts.ExperimentCumulativeCounts.java
@Override public ExperimentCumulativeCounts clone() { ExperimentCumulativeCounts cloned;// ww w .j ava2s .com try { cloned = (ExperimentCumulativeCounts) super.clone(); } catch (CloneNotSupportedException e) { // Should never happen 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; }
From source file:com.intuit.wasabi.analyticsobjects.counts.AbstractContainerCounts.java
@Override public AbstractContainerCounts clone() { AbstractContainerCounts cloned;//from ww w. j a va2s .com try { cloned = (AbstractContainerCounts) super.clone(); } catch (CloneNotSupportedException e) { // Should never happen throw new AnalyticsException("AbstractContainerCounts clone not supported: " + e.getMessage(), e); } if (impressionCounts != null) { cloned.setImpressionCounts(impressionCounts.clone()); } if (jointActionCounts != null) { cloned.setJointActionCounts(jointActionCounts.clone()); } if (actionCounts != null) { Map<Event.Name, ActionCounts> clonedActions = new HashMap<>(); for (Entry<Name, ActionCounts> entry : actionCounts.entrySet()) { clonedActions.put(entry.getKey(), entry.getValue().clone()); } cloned.setActionCounts(clonedActions); } return cloned; }
From source file:com.intuit.wasabi.analyticsobjects.statistics.Progress.java
@Override public Progress clone() { try {//w ww . j av a 2 s. c o m return (Progress) super.clone(); } catch (CloneNotSupportedException e) { // Should never happen throw new AnalyticsException("Progress clone not supported: " + e.getMessage(), e); } }
From source file:io.mindmaps.graql.internal.analytics.CountMapReduce.java
@Override public MapReduce<Serializable, Long, Serializable, Long, Map<Serializable, Long>> clone() { try {/* w ww .j a v a2s . co m*/ final CountMapReduce clone = (CountMapReduce) super.clone(); return clone; } catch (final CloneNotSupportedException e) { throw new IllegalStateException( ErrorMessage.CLONE_FAILED.getMessage(this.getClass().toString(), e.getMessage()), e); } }
From source file:com.intuit.wasabi.analyticsobjects.statistics.BucketComparison.java
@Override public BucketComparison clone() { BucketComparison cloned;/* w ww . ja va 2s . c om*/ try { cloned = (BucketComparison) super.clone(); } catch (CloneNotSupportedException e) { // Should never happen 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; }
From source file:com.intuit.wasabi.analyticsobjects.statistics.ComparisonStatistics.java
@Override public ComparisonStatistics clone() { ComparisonStatistics cloned;//from w ww. j av a 2s.c om try { cloned = (ComparisonStatistics) super.clone(); } catch (CloneNotSupportedException e) { // Should never happen throw new AnalyticsException("ComparisonStatistics clone not supported: " + e.getMessage(), e); } if (actionRateDifference != null) { cloned.setActionRateDifference(actionRateDifference.clone()); } if (smallestDistinguishableEffectSize != null) { cloned.setSmallestDistinguishableEffectSize(smallestDistinguishableEffectSize.clone()); } return cloned; }
From source file:io.mindmaps.graql.internal.analytics.DegreeVertexProgram.java
@Override public DegreeVertexProgram clone() { try {/*ww w. j a v a2s .co m*/ final DegreeVertexProgram clone = (DegreeVertexProgram) super.clone(); return clone; } catch (final CloneNotSupportedException e) { throw new IllegalStateException( ErrorMessage.CLONE_FAILED.getMessage(this.getClass().toString(), e.getMessage()), e); } }
From source file:com.intuit.wasabi.analyticsobjects.Event.java
@Override public Event clone() { try {/*from w ww . ja va 2 s . co m*/ return (Event) super.clone(); } catch (CloneNotSupportedException e) { throw new AnalyticsException("Event clone not supported: " + e.getMessage(), e); } }
From source file:com.revolsys.ui.web.config.MenuItem.java
@Override public Object clone() { try {//from w ww . j av a2 s. co m return super.clone(); } catch (final CloneNotSupportedException e) { throw new RuntimeException(e.getMessage(), e); } }
From source file:com.intuit.wasabi.analyticsobjects.Parameters.java
@Override public Parameters clone() { try {//from w w w . j a v a 2 s. c om return (Parameters) super.clone(); } catch (CloneNotSupportedException e) { // Should never happen throw new AnalyticsException("Parameters clone not supported: " + e.getMessage(), e); } }