Recently, while developing examples for the groupingBy() guide, I discovered handy JDK 10 additions to the Stream API – Collectors allowing collecting Stream pipelines into…
If you always find yourself not going beyond:
…or simply wanted to discover more its potential uses, then this article is for you.
If you’re looking for a general Collectors API overview, head here.
In this article, we’ll see how to implement a custom sliding window Stream/Spliterator in Java.
Does the world need another way of implementing a sliding window operation in Java? Probably not, but you do – for your self-development.