Skip to content
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

Running and trailing average of BigDecimal #7

Merged
merged 1 commit into from
Jul 16, 2024
Merged

Conversation

tginsberg
Copy link
Owner

  • Add general WithOriginal object and Gatherer to carry an original value and a mapped value (an average, in this case).
  • Add function to GathererUtils to throw an IllegalArgumentException when a parameter is null, rather than use Objects.requireNotNull and get a NullPointerException.
  • Averaging of BigDecimal with ability to specify a positive number of trailing values to consider, whether to emit partially calculated values for a trailing average, and the ability to change the RoudingMode and MathContext for mathematical operations.

+ Add general WithOriginal object and Gatherer to carry an original value and a mapped value (an average, in this case).
+ Add function to GathererUtils to throw an IllegalArgumentException when a parameter is null, rather than use Objects.requireNotNull and get a NullPointerException.
+ Averaging of BigDecimal with ability to specify a positive number of trailing values to consider, whether to emit partially calculated values for a trailing average, and the ability to change the RoudingMode and MathContext for mathematical operations.
@tginsberg tginsberg merged commit 12eec9c into main Jul 16, 2024
1 check passed
@tginsberg tginsberg deleted the feature/average branch July 16, 2024 11:45
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.

None yet

1 participant