private MeasurementUnit(String displayUnits, Family family, Scale scale) { if (displayUnits.length() > 5) { throw MESSAGES.maxDisplayUnitLength(); } this.displayUnits = displayUnits; this.family = family; this.scale = scale; }
private MeasurementUnit(String displayUnits, Family family, Scale scale) { if (displayUnits.length() > 5) { throw MESSAGES.maxDisplayUnitLength(); } this.displayUnits = displayUnits; this.family = family; this.scale = scale; }