/** * Returns a new {@code Measurement} object that is the subtraction of the * specified object from this object. * * @param m The {@code Measurement} object that will be subtracted from this * object. * @return A new {@code Measurement} object that is the subtraction of the * specified object from this 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. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be subtracted. * @see Unit */ public Measurement sub(Measurement m) { return new Measurement(value - m.value, error + m.error, unit.sub(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the subtraction of the * specified value from this object. * * @param d The value that will be subtracted from this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} object that is the subtraction of the * specified value from this object. 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 object cannot be subtracted. * @see Unit */ public Measurement sub(double d, Unit u) { return new Measurement(value - d, error, unit.sub(u), time); }
/** * Returns a new <code>Measurement</code> object that is the subtraction of * the specified object from this object. * * @param m The <code>Measurement</code> object that will be subtracted from * this object. * @return A new <code>Measurement</code> object that is the subtraction of * the specified object from this 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. * @throws ArithmeticException If the <code>Unit</code> objects of this object * and the specified object cannot be subtracted. * @see Unit */ public Measurement sub(Measurement m) { return new Measurement(value - m.value, error + m.error, unit .sub(m.unit), time); }
/** * Returns a new <code>Measurement</code> object that is the subtraction of * the specified value from this object. * * @param d The value that will be subtracted from this object. * @param u The <code>Unit</code> object of the specified value. * @return A new <code>Measurement</code> object that is the subtraction of * the specified value from this object. 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 object cannot be subtracted. * @see Unit */ public Measurement sub(double d, Unit u) { return new Measurement(value - d, error, unit.sub(u), time); }
/** * Returns a new {@code Measurement} object that is the subtraction of * the specified value from this object. * * @param d The value that will be subtracted from this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} object that is the subtraction of * the specified value from this object. 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 object cannot be subtracted. * @see Unit */ public Measurement sub(double d, Unit u) { return new Measurement(value - d, error, unit.sub(u), time); }
/** * Returns a new {@code Measurement} object that is the subtraction of the * specified value from this object. * * @param d The value that will be subtracted from this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} object that is the subtraction of the * specified value from this object. 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 object cannot be subtracted. * @see Unit */ public Measurement sub(double d, Unit u) { return new Measurement(value - d, error, unit.sub(u), time); }
/** * Returns a new {@code Measurement} object that is the subtraction of the * specified object from this object. * * @param m The {@code Measurement} object that will be subtracted from this * object. * @return A new {@code Measurement} object that is the subtraction of the * specified object from this 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. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be subtracted. * @see Unit */ public Measurement sub(Measurement m) { return new Measurement(value - m.value, error + m.error, unit.sub(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the subtraction of the * specified object from this object. * * @param m The {@code Measurement} object that will be subtracted from this * object. * @return A new {@code Measurement} object that is the subtraction of the * specified object from this 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. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be subtracted. * @see Unit */ public Measurement sub(Measurement m) { return new Measurement(value - m.value, error + m.error, unit.sub(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the subtraction of the * specified value from this object. * * @param d The value that will be subtracted from this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} object that is the subtraction of the * specified value from this object. 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 object cannot be subtracted. * @see Unit */ public Measurement sub(double d, Unit u) { return new Measurement(value - d, error, unit.sub(u), time); }
/** * Returns a new {@code Measurement} object that is the subtraction of * the specified object from this object. * * @param m The {@code Measurement} object that will be subtracted from * this object. * @return A new {@code Measurement} object that is the subtraction of * the specified object from this 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. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be subtracted. * @see Unit */ public Measurement sub(Measurement m) { return new Measurement(value - m.value, error + m.error, unit .sub(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the subtraction of the * specified object from this object. * * @param m The {@code Measurement} object that will be subtracted from this * object. * @return A new {@code Measurement} object that is the subtraction of the * specified object from this 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. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be subtracted. * @see Unit */ public Measurement sub(Measurement m) { return new Measurement(value - m.value, error + m.error, unit.sub(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the subtraction of * the specified value from this object. * * @param d The value that will be subtracted from this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} object that is the subtraction of * the specified value from this object. 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 object cannot be subtracted. * @see Unit */ public Measurement sub(double d, Unit u) { return new Measurement(value - d, error, unit.sub(u), time); }
/** * Returns a new {@code Measurement} object that is the subtraction of the * specified object from this object. * * @param m The {@code Measurement} object that will be subtracted from this * object. * @return A new {@code Measurement} object that is the subtraction of the * specified object from this 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. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be subtracted. * @see Unit */ public Measurement sub(Measurement m) { return new Measurement(value - m.value, error + m.error, unit.sub(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the subtraction of the * specified value from this object. * * @param d The value that will be subtracted from this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} object that is the subtraction of the * specified value from this object. 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 object cannot be subtracted. * @see Unit */ public Measurement sub(double d, Unit u) { return new Measurement(value - d, error, unit.sub(u), time); }
/** * Returns a new {@code Measurement} object that is the subtraction of the * specified object from this object. * * @param m The {@code Measurement} object that will be subtracted from this * object. * @return A new {@code Measurement} object that is the subtraction of the * specified object from this 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. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be subtracted. * @see Unit */ public Measurement sub(Measurement m) { return new Measurement(value - m.value, error + m.error, unit.sub(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the subtraction of the * specified value from this object. * * @param d The value that will be subtracted from this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} object that is the subtraction of the * specified value from this object. 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 object cannot be subtracted. * @see Unit */ public Measurement sub(double d, Unit u) { return new Measurement(value - d, error, unit.sub(u), time); }
/** * Returns a new {@code Measurement} object that is the subtraction of the * specified value from this object. * * @param d The value that will be subtracted from this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} object that is the subtraction of the * specified value from this object. 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 object cannot be subtracted. * @see Unit */ public Measurement sub(double d, Unit u) { return new Measurement(value - d, error, unit.sub(u), time); }
/** * Returns a new {@code Measurement} object that is the subtraction of * the specified object from this object. * * @param m The {@code Measurement} object that will be subtracted from * this object. * @return A new {@code Measurement} object that is the subtraction of * the specified object from this 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. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be subtracted. * @see Unit */ public Measurement sub(Measurement m) { return new Measurement(value - m.value, error + m.error, unit .sub(m.unit), time); }