New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What about Unit.annotate()? #54
Comments
It depends: what is the purpose of |
To create an "annotated unit", but unlike Seems it is for http://ceur-ws.org/Vol-432/owled2008eu_submission_21.pdf or the "curly braces" in UCUM: http://unitsofmeasure.org/ucum.html It seems more specific than the others. |
Okay, I have read §6 curly braces section on UCUM page. Now how do we translate that in Java API? Can you post a javadoc describing the contract of such |
@dautelle It seems |
Annotations can be used to be more specific about the unit, for exemple 15.0 Gal [Petroleum], mile[standard] different from a mile[US_survey], etc. |
@dautelle Could you please raise your thumb here, as nobody really seems to care about it in the API? |
Having read the discussion and related links, I believe annotations should better be provided in our API. That way, we will ease our users' way of working, in case they need more explanatory units. That said, +1 from my side. |
Great, thanks a lot. @unitsofmeasurement/experts, @unitsofmeasurement/contributors, please also chip in if you agree. While discussions about implementation details of a particular implementation (resulting of either |
Maybe we need to close this one as well, given that we closed most of the related ones today? |
I think it's to rarely used for the API. |
Cool! That drops the overall amount of open issues to an one-digit number again :-) |
At the moment the
Unit
interface definesalternate()
ortransform()
methods but annotate() is only exposed via theAbstractUnit
base class of implementations. Unless it is too little-used and this is meant to be a status-quo, could it also be added to theUnit
interface from a future version?The text was updated successfully, but these errors were encountered: