Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 public boolean isEmpty() {
   return super.isEmpty()
       && (numerator == null || numerator.isEmpty())
       && (denominator == null || denominator.isEmpty());
 }