/** * A copy constructor. Creates a deep-copy of the {@code original}. * * @param original the {@code SynchronizedSummaryStatistics} instance to copy * @throws NullArgumentException if original is null */ public SynchronizedSummaryStatistics(SynchronizedSummaryStatistics original) throws NullArgumentException { copy(original, this); }
/** * Returns a copy of this SynchronizedSummaryStatistics instance with the * same internal state. * * @return a copy of this */ @Override public synchronized SynchronizedSummaryStatistics copy() { SynchronizedSummaryStatistics result = new SynchronizedSummaryStatistics(); // No try-catch or advertised exception because arguments are guaranteed non-null copy(this, result); return result; }
/** * A copy constructor. Creates a deep-copy of the {@code original}. * * @param original the {@code SynchronizedSummaryStatistics} instance to copy * @throws NullArgumentException if original is null */ public SynchronizedSummaryStatistics(SynchronizedSummaryStatistics original) throws NullArgumentException { copy(original, this); }
/** * A copy constructor. Creates a deep-copy of the {@code original}. * * @param original the {@code SynchronizedSummaryStatistics} instance to copy * @throws NullArgumentException if original is null */ public SynchronizedSummaryStatistics(SynchronizedSummaryStatistics original) throws NullArgumentException { copy(original, this); }
/** * Returns a copy of this SynchronizedSummaryStatistics instance with the * same internal state. * * @return a copy of this */ @Override public synchronized SynchronizedSummaryStatistics copy() { SynchronizedSummaryStatistics result = new SynchronizedSummaryStatistics(); // No try-catch or advertised exception because arguments are guaranteed non-null copy(this, result); return result; }
/** * Returns a copy of this SynchronizedSummaryStatistics instance with the * same internal state. * * @return a copy of this */ @Override public synchronized SynchronizedSummaryStatistics copy() { SynchronizedSummaryStatistics result = new SynchronizedSummaryStatistics(); // No try-catch or advertised exception because arguments are guaranteed non-null copy(this, result); return result; }