- /**
- * Set the value of this object.
- *
- * @param unit the unit to set (<code>null</code> not allowed)
- */
- public void setUnit(Unit unit) {
- if (unit == null) {
- throw new IllegalArgumentException("unit is null");
- }
- this.unit = unit;
- }
-