What's Changed
- Use greedy integrators where possible (Fixes #57)
- Add JSpecify annotations for static analysis
- Implement
orderByFrequencyAscending()
andorderByFrequencyDescending()
- Implement
movingProduct()
andmovingProductBy()
- Implement
movingSum()
andmovingSumBy()
- Remove
maxBy(fn)
andminBy(fn)
, can be done with JDK methods trivially - Rename
exactSize()
tosizeExactly()
- Implement
sizeLessThan()
,sizeLessThanOrEqualTo()
,sizeGreaterThan()
, andsizeGreaterThanOrEqualTo()
- API Style - Functions, when used as arguments, should come last for consistency and to play nice with Kotlin (Fixes #64)
Using in Maven
<dependency>
<groupId>com.ginsberg</groupId>
<artifactId>gatherers4j</artifactId>
<version>0.7.0</version>
</dependency>
Using in Gradle
implementation("com.ginsberg:gatherers4j:0.7.0")