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