Accumulative is an interface proposed for the intermediate accumulation type A of Collector<T, A, R> in order to make defining custom Java Collectors easier. Introduction If you’ve ever used Java Streams, you most likely used some Collectors, e.g.: Collectors.toList Collectors.toMap But have you ever used… A composed Collector? It takes […]
Parametrization
3 posts
Filterer is a pattern that should be applied only in certain cases. In the original post, I presented a very simple example intended to show how to apply it. In this post, I present a much more detailed example that’s intended to also explain when and why to apply it. […]
Originally published on DZone on October 17, 2018. TL;DR: Compare sections 5) CONSUMERS OF THE API of the two files in this diff, and see which one you find more readable. Introduction The idea for writing this article came to me after a discussion on DZone about the Filterer Pattern. […]