Description:
A group for users of the Unit-API
|
|
|
ParseException on doing Unit.valueOf(NonSI.BYTE.times( 1024).toString());
|
| |
I am trying to write code which can serialize javax.measure.unit.Unit instances into JSON. For this I am using the Jackson object mapper. The object mapper can't directly serialize Unit instances due to a self-reference, so instead I store a String representation of the Unit. While serializing I do something like... more »
|
|
Request for API change (hopefully minor)
|
| |
Thanks, but given the ICU and Unicode Consortium is a group similar to JCP with companies even including Apple or Microsoft(!) involved (though they don't seem to care about Java unlike IBM, Google, Oracle and others) it is unlikely ICU4J would adopt Unit-API until e.g. parts inspired by it became a JSR ;-/... more »
|
|
Unit-API and UOMo at JavaOne 2011
|
| |
If you're at JavaOne this year and interested in Units of Measurements, please come to Eclipse Foundation booth on Tuesday, Oct 4th between 9:30 and 11:30. I'm going to demo Eclipse UOMo there. See you Tuesday, Werner
|
|
JSR-275 now at Maven Central
|
| |
Hi, Some things happen often after a very long time. For those still using the old JSR (Martin) it may be good to hear, that Sonatype has recently created a mirror of the java.net repository: [link]... more »
|
|
how to i get ratio?
|
| |
I am really struggling with the units of measure api. i have a
quantity object and i need to extract out
a comparative ration from the two units:
Quantity<Length> foot = getLength(1, FOOT);
Quantity<Length> inches = a.getLength(24, INCHES);
double ratio = foot.divide(inches);
assert(ratio == 2);... more »
|
|
Known Implementations
|
| |
After Eclipse UOMo and JScience 5 (in progress) we're happy to
announce a third, vendor specific implementation of Unit-API by BT
Global Services: [link]
For details and a list of implementations, please see
[link]
|
|
IncommensurableException extends RuntimeException
|
| |
Hello all (Sorry for cross-posting; just realized that I should probably post on units-users@googlegroups.com instead than unitsofmeas...@jscience.dev.ja va.net). I just noticed that in the org.unitsofmeasurement interfaces, the IncommensurableException is now an unchecked exception instead than a checked... more »
|
|
State of implementations?
|
| |
Martin/all, Thanks a lot for sharing this request. As Jean-Marie already mentioned, at least indirectly, default unit systems like SI are now part of implementations as many of its types rely more or less directly on implementing classes like BaseUnit, TransformedUnit, etc. UOMo calls it SI, and although package-local to support other formal system classes, NonSI is also there. The class to find INCH now is USCustomary. ICU4J, the underlying Unicode and Globalization Framework uses both these terms internally, too, so I decide to stick with them.... more »
|
|
|