Unitility: The Physics Units of Measure Library for Java with Spring Boot and Quarkus support for web applications development. Immutable, thread-safe, content rich, easy to use.
When using this library with Groovy, including plus() and minus() methods would allow one to more succinctly perform transformations, e.g.
Distance d1 =Distance.ofMeters(10)
Distance d2 =Distance.ofMeters(100)
assert d1 + d2 ==Distance.ofMeters(110)
// or even the following, which would default to using the unit of measurement that d1 was created withassert d1 +10==Distance.ofMeters(20)