-
-
Notifications
You must be signed in to change notification settings - Fork 45
extract the Dimension class from a given unit or Quantity #438
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
Comments
Unfortunately that's still not possible in Java due to the lack of reified generics, see https://maciejwalkowiak.com/blog/java-reified-generics/ |
- add `_unit_parsing()` subtest demonstrating <unitsofmeasurement/indriya#438> - clean up imports
You seem to confuse the concepts of Dimension type (see Therefore, I assume that what you actually look for is a way to retrieve the Quantity type, rather than the "Dimension" (which is obviously available via I found myself in the same situation as yours and, after some struggling, I could work out a satisfactory solution based on a single utility method, My tests show that this solution is pretty robust (see If my solution may be useful to your case, feel free to reuse it, provided that you properly credit its source, thanks! |
Thanks for the pointer. As the "PDFClown" project is under LGPL, I'm afraid we cannot directly use it for Indriya which is under BSD, at least I don't want to get into that whole license thing. Does your project fully implement JSR 385? |
I'm willing to accommodate your issue, relicensing my code accordingly — I could open a PR to Indriya with the relicensed files, leaving reviewers write permission so you can rearrange them into your code base (provided that my attribution is preserved, of course).
No, it doesn't, sorry: |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I use Idriya in the context of a compiler, where I need to define the actuall Dimension type.
Therefore I need to somehow get the actual Dimension class for a parsed Unit or Quantity.
eg.
Is there currently a way to do this? I have not found anything. If not, I would propose a change that preserves this information and allows the user to retrieve it.
The text was updated successfully, but these errors were encountered: