-
Notifications
You must be signed in to change notification settings - Fork 610
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
Java units API rewrite #6958
Merged
Merged
Java units API rewrite #6958
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
5112c36
Rename unit classes to end in *Unit
SamCarlberg 869a2c4
Flatten units into discrete types
SamCarlberg fb61fc7
Rename `IMutable` to `MutableMeasure`
SamCarlberg cd04e93
Move mutable types to dedicated package
SamCarlberg 485135a
Split into mutable and immutable variants
SamCarlberg 158c576
Small fixups
SamCarlberg fd0d2d1
Move measure interfaces to their own package
SamCarlberg 29b1e68
Implement toString for immutable measures
SamCarlberg 542b0f6
Misc cleanup
SamCarlberg a44bf47
Add generic constructor to trapezoid profile constraints
SamCarlberg 38d18ba
Add ratio measure type
SamCarlberg d23b27f
Add math operator overloads for all known dimensions
SamCarlberg 0e6c8d0
Formatting and linting
SamCarlberg acfea50
Linting, documentation, and seal nonextensible unit types
SamCarlberg ab96bf3
Fix import ordering
SamCarlberg 04cb95a
Improve `equals` logic
SamCarlberg d44ac50
Checkstyle
SamCarlberg 88ecf04
Consistent API in unit subclasses for non-inherited methods
SamCarlberg 0405dff
Refactor usages of old unit APIs
SamCarlberg 2f7cd05
Add wpiunits to pregenerated files CI check
SamCarlberg 90da7a9
Doc fix
SamCarlberg 4c71208
Remove unused import from codegen script
SamCarlberg 0e7a055
Update epilogue logging
SamCarlberg 6fefb1c
Update cmake build
SamCarlberg 1239fb6
Linting
SamCarlberg a5c821c
Fix some combined base units
SamCarlberg 469d8dc
Add standard zero() and one() factories
SamCarlberg ef5b23e
Fix Newton definition
SamCarlberg 10081d6
Suppress this-escape warning
SamCarlberg e20ee8e
Update EpilogueConfiguration
SamCarlberg 3d5134a
Formatting fixes
github-actions[bot] a08c350
Return sharpened types from `one()` and `zero()` methods
SamCarlberg 65e2c8c
Fix docs typo
SamCarlberg d7f42e1
Add a `timesConversionFactor()` method
SamCarlberg 055b409
Add Per.timesDivisor() and Per.reciprocal()
SamCarlberg bbc7784
Basic script documentation
SamCarlberg ed9204a
Merge remote-tracking branch 'wpi/main' into unit-flattening
SamCarlberg eedcea4
Remove Force.mult(Distance) -> Energy function for now
SamCarlberg f1d9dc2
Revert example project constants
SamCarlberg 10bb1af
Use `Measure` input parameters consistently
SamCarlberg 5de0ae9
Add .ofNative factories to PerUnit
SamCarlberg 9d2e419
Linting
SamCarlberg 4d4e61c
Fix derived name/symbol indicating division instead of multiplication
SamCarlberg 7365901
Add simple tests for PerUnit
SamCarlberg 6bb4513
Consistently use dimension-specific measure types wherever possible
SamCarlberg bcdac63
Add .ofNative to MultUnit
SamCarlberg 2140dec
Linting
SamCarlberg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A raw cast is required here due to conflicts with the wildcarded return supertype: