Hi All,
I am new to the Java Units API, would like to understand if it can fit my use case.
I am using
units-in-java for years, built also a powerful converter with it. Units-in-java is port of
GNU Units, which I find an amazing software. Unfortunately units-in-java seems unmaintained/abandoned, so I am searching a replacement for it.
The Java Units API looks well structured and solid, I would love to use it, but inspecting the sample code I find it quite hard to implement the conversion of "composite" units. While it is relatively easy to convert simple units like mass, volume, converting composite units like "kg/h" or "Pa * s" seems to require a non negligible amount of work. With GNU Units type of approach, it is one line of code.
My question is how should I handle the conversion of composite units?
Sorry if the agument is too broad, I need just a general answer to orient myself.
Regards
Carlo