Lines Matching defs:unit
15 * An amount of a specified unit, consisting of a Number and a Unit.
17 * unit, such as feet or meters.
34 private final MeasureUnit unit;
37 * Constructs a new object given a number and a unit.
39 * @param unit the unit
42 public Measure(Number number, MeasureUnit unit) {
43 if (number == null || unit == null) {
47 this.unit = unit;
63 return unit.equals(m.unit) && numbersEqual(number, m.number);
89 return 31 * Double.valueOf(number.doubleValue()).hashCode() + unit.hashCode();
99 return number.toString() + ' ' + unit.toString();
112 * Returns the unit of this object.
117 return unit;