Skip to content

Conversation

@qudtlib-bot
Copy link
Collaborator

Changes

7.2.0-beta.1 - 2026-02-11

Added

  • Add static factory methods QuantityValue.of(value, unit) with various value argument types that can be used to instantiate the
    BigDecimal value used internally.

  • Add dynamic factory methods in Unit.quantityValue(value) with various value argument types that can be used to instantiate the
    BigDecimal value used internally.

  • Add delegate methods for many BigDecimal methods to QuantityValue to allow for mathematical operations with
    automatic unit conversion, for example:

    QuantityValue mVal = Qudt.Units.M.quantityValue(20);
    QuantityValue ftVal = Qudt.Units.FT.quantityValue(1);
    QuantityValue mValResult = mVal.add(ftVal);
    

Fixed

  • Fix wrong definition of Quantity. It used to encapsulate a Set of QuantityValue, which never made sense. With
    this change, it encapsulates a QuantityValue and a QuantityKind, conforming to the definition of the concept in QUDT.
  • Upgrade various dependencies.

Release info

Automated release through workflow: 'Release and deploy to Sonatype staging repo'
Triggered by: fkleedorfer
Version: 7.2.0-beta.1
Next development version: 7.2.1-SNAPSHOT

Next Steps

Please rebase this PR on top of main after publishing the release via the
Sonatype Repository Manager.

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.

2 participants