Question on visibility Imperial.POUND

7 views
Skip to first unread message

niklas...@gmail.com

unread,
Jan 30, 2018, 2:49:02 PM1/30/18
to Units Users
Hi,

I am trying to convert kg to pound using the uom api.

While I can specify a quantity in kg by using tec.uom.se.unit.Units.KILOGRAM, I have not found a similar constant for pounds.

uom-systems/common-java8/src/main/java/systems/uom/common/Imperial.java contains a constant that is package protected, so I cannot access it.

Can you tell me what the recommended way to get an instance of the pound unit is?

Thanks & best regards,
  Niklas

Werner Keil

unread,
Jan 30, 2018, 4:28:30 PM1/30/18
to Units Users
Hi,

Thanks for bringing this to our attention. Please for immediate needs use USCustomary from the same module. 

We aim to add every relevant unit that's in https://en.wikipedia.org/wiki/Imperial_units. If you have a GitHub user and are happy to sign the Eclipse Contributor Agreement (to allow using this and other libraries in Eclipse.org projects like SmartHome, etc.) you are more than welcome to contribute. 

These libraries are not part of JSR 363 or 385 so JCP membership is not necessary to help with them.

Thanks,
Werner
Reply all
Reply to author
Forward
0 new messages