If I was trying to create a GUI for performing unit conversions between any two
units of the same quantity, I would need to create a list of all quantities.
However, I donâ€™t see any mechanism in your API to get a list of available
quantities. I do see that I can list out all of the units from the
SystemOfUnits class so I thought I would list out each unit and then get the
Quantity for each one to build my own list. However, I donâ€™t see how I can get
the Quantity string name for a given Unit instance.
My second problem is that I would like to present the user with a long name of
each unit in addition to the abbreviation or symbol. However, I donâ€™t see any
mechanism in your API to get a long name of a Unit instance. Like I want to
display â€œmetersâ€� instead of just â€œmâ€�.
Am I missing something?
Need a getQuantites() method somewhere to list out all Quantities supported by
Need a Unit.getQuantity() method so the Quantity supported by a given Unit
instance can be discovered
Need a SystemOfUnits.getUnitsForQuantity(Quantity q) method so all the Units
that support the specified Quantity can be discovered
Need a Unit.getSymbol(), Unit.getName(), Unit.getDescription(), etc to get more
metadata about each Unit. Not sure if this should be in the UnitFormat or not,
be it should be somewhere.