Home | History | Annotate | Download | only in util

Lines Matching refs:unit

18  * An amount of a specified unit, consisting of a Number and a Unit.
20 * 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
43 public Measure(Number number, MeasureUnit unit) {
44 if (number == null || unit == null) {
48 this.unit = unit;
64 return unit.equals(m.unit) && numbersEqual(number, m.number);
90 return 31 * Double.valueOf(number.doubleValue()).hashCode() + unit.hashCode();
100 return number.toString() + ' ' + unit.toString();
112 * Returns the unit of this object.
113 * @return this object's Unit
116 return unit;