/** * Copies source to dest. * <p>Neither source nor dest can be null.</p> * * @param source GeometricMean to copy * @param dest GeometricMean to copy to * @throws NullPointerException if either source or dest is null */ public static void copy(GeometricMean source, GeometricMean dest) { dest.setData(source.getDataRef()); dest.sumOfLogs = source.sumOfLogs.copy(); }