truedeity / unitsofmeasure

Automatically exported from code.google.com/p/unitsofmeasure
0 stars 0 forks source link

Should Unit.alternate return type be Unit<Q>? #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The alternate() method defined in the Unit interface currently returns Unit<?>. 
It seems to be that it should return Unit<Q> since changing the unit symbol 
should not change the kind of quantity measured by the Unit.

Or, if the quantity type is unrestricted in order to allow switching from 
Energy to Torque (for example), this this should be explained in the javadoc.

Original issue reported on code.google.com by martdesr...@gmail.com on 8 Jan 2013 at 5:01

GoogleCodeExporter commented 9 years ago
Committed as of revision 222.

Original comment by martdesr...@gmail.com on 9 Jan 2013 at 9:50