/** * Copy constructor, creates a new {@code Mean} identical * to the {@code original} * * @param original the {@code Mean} instance to copy * @throws NullArgumentException if original is null */ public Mean(Mean original) throws NullArgumentException { copy(original, this); }
/** * {@inheritDoc} */ @Override public Mean copy() { Mean result = new Mean(); // No try-catch or advertised exception because args are guaranteed non-null copy(this, result); return result; }
public Stat copy() { Stat stat = new Stat(); stat.min = this.min; stat.max = this.max; stat.sum = this.sum; stat.mean = this.mean.copy(); return stat; } }
dest.mean = (Mean) dest.meanImpl; } else { Mean.copy(source.mean, dest.mean);
/** * Copy constructor, creates a new {@code Mean} identical * to the {@code original} * * @param original the {@code Mean} instance to copy * @throws NullArgumentException if original is null */ public Mean(Mean original) throws NullArgumentException { copy(original, this); }
/** * Copy constructor, creates a new {@code Mean} identical * to the {@code original} * * @param original the {@code Mean} instance to copy * @throws NullArgumentException if original is null */ public Mean(Mean original) throws NullArgumentException { copy(original, this); }
/** * {@inheritDoc} */ @Override public Mean copy() { Mean result = new Mean(); // No try-catch or advertised exception because args are guaranteed non-null copy(this, result); return result; }
/** * {@inheritDoc} */ @Override public Mean copy() { Mean result = new Mean(); // No try-catch or advertised exception because args are guaranteed non-null copy(this, result); return result; }
dest.mean = (Mean) dest.meanImpl; } else { Mean.copy(source.mean, dest.mean);
dest.mean = (Mean) dest.meanImpl; } else { Mean.copy(source.mean, dest.mean);