public Ratio copy() { Ratio dst = new Ratio(); copyValues(dst); dst.numerator = numerator == null ? null : numerator.copy(); dst.denominator = denominator == null ? null : denominator.copy(); return dst; }
public Quantity copy() { Quantity dst = new Quantity(); copyValues(dst); dst.value = value == null ? null : value.copy(); dst.comparator = comparator == null ? null : comparator.copy(); dst.unit = unit == null ? null : unit.copy(); dst.system = system == null ? null : system.copy(); dst.code = code == null ? null : code.copy(); return dst; }
public boolean isEmpty() { return super.isEmpty() && (numerator == null || numerator.isEmpty()) && (denominator == null || denominator.isEmpty()); }