Home | History | Annotate | Download | only in util

Lines Matching refs:unit

17  * An amount of a specified unit, consisting of a Number and a Unit.
19 * unit, such as feet or meters.
36 private final MeasureUnit unit;
39 * Constructs a new object given a number and a unit.
41 * @param unit the unit
44 public Measure(Number number, MeasureUnit unit) {
45 if (number == null || unit == null) {
49 this.unit = unit;
66 return unit.equals(m.unit) && numbersEqual(number, m.number);
93 return 31 * Double.valueOf(number.doubleValue()).hashCode() + unit.hashCode();
104 return number.toString() + ' ' + unit.toString();
117 * Returns the unit of this object.
118 * @return this object's Unit
122 return unit;