Jason Ankers
02/19/2021, 11:48 AMForce
from Double
which represents a force value converted to the appropriate unit (lbs/kg) based on user preferences. The type would encapsulate the conversion logicCLOVIS
02/19/2021, 12:06 PMinline class
(the new syntax is @JvmInline value class
).
Alternatively, take a look at this: https://github.com/kunalsheth/units-of-measure