Skip to content

♻️Change quantity info types to static factories #1580

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

Draft
wants to merge 1 commit into
base: agl/unitconversion-in-quantityinfo
Choose a base branch
from

Conversation

angularsen
Copy link
Owner

@angularsen angularsen commented Jul 25, 2025

We already have generic support for quantity info, so adding concrete types for 100+ quantities seems a bit redundant and only used internally.

  • Change from concrete types to static factory classes, holding constant values and unit mappings as before
  • Merge method overloads, fall back to built-in resource manager if null is given
  • Change factory classes from public to private

We already have generic support for quantity info, so adding concrete types for 100+ quantities seems a bit redundant and only used internally.

- Change from concrete types to static factory classes, holding constant values and unit mappings as before
- Merge method overloads, fall back to built-in resource manager if null is given
- Change factory classes from `public` to `private`
@angularsen
Copy link
Owner Author

angularsen commented Jul 25, 2025

Blocked by #1578, merge conflict trying to target master so that change is temporarily included and targeting that branch.
Change target branch to master when resolved.

@angularsen angularsen changed the title ✨Configure unit conversions via IQuantityInfo ♻️Change quantity info types to static factories Jul 25, 2025
@angularsen angularsen requested a review from lipchev July 25, 2025 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant