package com.openxc.units;

public abstract class Quantity<T> {
    private T mValue;

    public Quantity(T value) {
        mValue = value;
    }

    public boolean equalTo(T otherValue) {
        return mValue.equals(otherValue);
    }

    public double doubleValue() {
        return 0.0;
    }

    public int intValue() {
        return 0;
    }
}

@@ -52,16 +52,31 @@
 antity%3CT
+ extends Number
 %3E %7B%0A    
@@ -301,11 +301,28 @@
 urn 
-0.0
+mValue.doubleValue()
 ;%0A  
@@ -373,9 +373,25 @@
 urn 
-0
+mValue.intValue()
 ;%0A  

Make Quantity numeric only.