/** * Returns a new {@code Measurement} object that is the sum of this object * added to the specified value. * * @param d The value that will be added with this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} object that is the sum of this object * added to the specified value. The unit of the new object is * computed. The error and time of the new object is set to the * error and time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified value cannot be added. * @see Unit */ public Measurement add(double d, Unit u) { return new Measurement(value + d, error, unit.add(u), time); }
/** * Returns a new {@code Measurement} object that is the sum of this object * added to the specified object. * * The error and unit of the new object are computed. The time of the new * object is set to the time of this object. * * @param m The {@code Measurement} object that will be added with this * object. * @return A new {@code Measurement} object that is the sum of this and m. * @see Unit * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be added. */ public Measurement add(Measurement m) { return new Measurement(value + m.value, error + m.error, unit.add(m.unit), time); }
/** * Returns a new <code>Measurement</code> object that is the sum of this * object added to the specified value. * * @param d The value that will be added with this object. * @param u The <code>Unit</code> object of the specified value. * @return A new <code>Measurement</code> object that is the sum of this * object added to the specified value. The unit of the new object * is computed. The error and time of the new object is set to the * error and time of this object. * @throws ArithmeticException If the <code>Unit</code> objects of this object * and the specified value cannot be added. * @see Unit */ public Measurement add(double d, Unit u) { return new Measurement(value + d, error, unit.add(u), time); }
/** * Returns a new <code>Measurement</code> object that is the sum of this * object added to the specified object. * * The error and unit of the new object are computed. The time of the new * object is set to the time of this object. * * @param m The <code>Measurement</code> object that will be added with this * object. * @return A new <code>Measurement</code> object that is the sum of this and * m. * @see Unit * @throws ArithmeticException If the <code>Unit</code> objects of this object * and the specified object cannot be added. */ public Measurement add(Measurement m) { return new Measurement(value + m.value, error + m.error, unit .add(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the sum of this object * added to the specified object. * * The error and unit of the new object are computed. The time of the new * object is set to the time of this object. * * @param m The {@code Measurement} object that will be added with this * object. * @return A new {@code Measurement} object that is the sum of this and m. * @see Unit * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be added. */ public Measurement add(Measurement m) { return new Measurement(value + m.value, error + m.error, unit.add(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the sum of this object * added to the specified object. * * The error and unit of the new object are computed. The time of the new * object is set to the time of this object. * * @param m The {@code Measurement} object that will be added with this * object. * @return A new {@code Measurement} object that is the sum of this and m. * @see Unit * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be added. */ public Measurement add(Measurement m) { return new Measurement(value + m.value, error + m.error, unit.add(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the sum of this object * added to the specified value. * * @param d The value that will be added with this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} object that is the sum of this object * added to the specified value. The unit of the new object is * computed. The error and time of the new object is set to the * error and time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified value cannot be added. * @see Unit */ public Measurement add(double d, Unit u) { return new Measurement(value + d, error, unit.add(u), time); }
/** * Returns a new {@code Measurement} object that is the sum of this * object added to the specified value. * * @param d The value that will be added with this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} object that is the sum of this * object added to the specified value. The unit of the new object * is computed. The error and time of the new object is set to the * error and time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified value cannot be added. * @see Unit */ public Measurement add(double d, Unit u) { return new Measurement(value + d, error, unit.add(u), time); }
/** * Returns a new {@code Measurement} object that is the sum of this object * added to the specified object. * * The error and unit of the new object are computed. The time of the new * object is set to the time of this object. * * @param m The {@code Measurement} object that will be added with this * object. * @return A new {@code Measurement} object that is the sum of this and m. * @see Unit * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be added. */ public Measurement add(Measurement m) { return new Measurement(value + m.value, error + m.error, unit.add(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the sum of this * object added to the specified value. * * @param d The value that will be added with this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} object that is the sum of this * object added to the specified value. The unit of the new object * is computed. The error and time of the new object is set to the * error and time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified value cannot be added. * @see Unit */ public Measurement add(double d, Unit u) { return new Measurement(value + d, error, unit.add(u), time); }
/** * Returns a new {@code Measurement} object that is the sum of this object * added to the specified value. * * @param d The value that will be added with this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} object that is the sum of this object * added to the specified value. The unit of the new object is * computed. The error and time of the new object is set to the * error and time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified value cannot be added. * @see Unit */ public Measurement add(double d, Unit u) { return new Measurement(value + d, error, unit.add(u), time); }
/** * Returns a new {@code Measurement} object that is the sum of this object * added to the specified value. * * @param d The value that will be added with this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} object that is the sum of this object * added to the specified value. The unit of the new object is * computed. The error and time of the new object is set to the * error and time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified value cannot be added. * @see Unit */ public Measurement add(double d, Unit u) { return new Measurement(value + d, error, unit.add(u), time); }
/** * Returns a new {@code Measurement} object that is the sum of this * object added to the specified object. * * The error and unit of the new object are computed. The time of the new * object is set to the time of this object. * * @param m The {@code Measurement} object that will be added with this * object. * @return A new {@code Measurement} object that is the sum of this and * m. * @see Unit * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be added. */ public Measurement add(Measurement m) { return new Measurement(value + m.value, error + m.error, unit .add(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the sum of this object * added to the specified object. * * The error and unit of the new object are computed. The time of the new * object is set to the time of this object. * * @param m The {@code Measurement} object that will be added with this * object. * @return A new {@code Measurement} object that is the sum of this and m. * @see Unit * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be added. */ public Measurement add(Measurement m) { return new Measurement(value + m.value, error + m.error, unit.add(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the sum of this object * added to the specified value. * * @param d The value that will be added with this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} object that is the sum of this object * added to the specified value. The unit of the new object is * computed. The error and time of the new object is set to the * error and time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified value cannot be added. * @see Unit */ public Measurement add(double d, Unit u) { return new Measurement(value + d, error, unit.add(u), time); }
/** * Returns a new {@code Measurement} object that is the sum of this object * added to the specified object. * * The error and unit of the new object are computed. The time of the new * object is set to the time of this object. * * @param m The {@code Measurement} object that will be added with this * object. * @return A new {@code Measurement} object that is the sum of this and m. * @see Unit * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be added. */ public Measurement add(Measurement m) { return new Measurement(value + m.value, error + m.error, unit.add(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the sum of this object * added to the specified value. * * @param d The value that will be added with this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} object that is the sum of this object * added to the specified value. The unit of the new object is * computed. The error and time of the new object is set to the * error and time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified value cannot be added. * @see Unit */ public Measurement add(double d, Unit u) { return new Measurement(value + d, error, unit.add(u), time); }
/** * Returns a new {@code Measurement} object that is the sum of this * object added to the specified object. * * The error and unit of the new object are computed. The time of the new * object is set to the time of this object. * * @param m The {@code Measurement} object that will be added with this * object. * @return A new {@code Measurement} object that is the sum of this and * m. * @see Unit * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be added. */ public Measurement add(Measurement m) { return new Measurement(value + m.value, error + m.error, unit .add(m.unit), time); }