JSR 363 - Units of Measurement API
The Unit of Measurement API provides a set of Java language programming interfaces for handling units and quantities. The interfaces provide a layer which separates client code, that would call the API, from library code, which implements the API.