/** * Copy constructor. Construct a new DescriptiveStatistics instance that * is a copy of original. * * @param original DescriptiveStatistics instance to copy */ public DescriptiveStatistics(DescriptiveStatistics original) { copy(original, this); }
/** * Copy constructor. Construct a new DescriptiveStatistics instance that * is a copy of original. * * @param original DescriptiveStatistics instance to copy */ public DescriptiveStatistics(DescriptiveStatistics original) { copy(original, this); }
/** * Copies source to dest. * <p>Neither source nor dest can be null.</p> * <p>Acquires synchronization lock on source, then dest before copying.</p> * * @param source SynchronizedDescriptiveStatistics to copy * @param dest SynchronizedDescriptiveStatistics to copy to * @throws NullPointerException if either source or dest is null */ public static void copy(SynchronizedDescriptiveStatistics source, SynchronizedDescriptiveStatistics dest) { synchronized (source) { synchronized (dest) { DescriptiveStatistics.copy(source, dest); } } } }
/** * Copies source to dest. * <p>Neither source nor dest can be null.</p> * <p>Acquires synchronization lock on source, then dest before copying.</p> * * @param source SynchronizedDescriptiveStatistics to copy * @param dest SynchronizedDescriptiveStatistics to copy to * @throws NullPointerException if either source or dest is null */ public static void copy(SynchronizedDescriptiveStatistics source, SynchronizedDescriptiveStatistics dest) { synchronized (source) { synchronized (dest) { DescriptiveStatistics.copy(source, dest); } } } }
/** * Returns a copy of this DescriptiveStatistics instance with the same internal state. * * @return a copy of this */ public DescriptiveStatistics copy() { DescriptiveStatistics result = new DescriptiveStatistics(); copy(this, result); return result; }
/** * Returns a copy of this DescriptiveStatistics instance with the same internal state. * * @return a copy of this */ public DescriptiveStatistics copy() { DescriptiveStatistics result = new DescriptiveStatistics(); copy(this, result); return result; }