What is a Teeing Collector?
Teeing is a static method which allows you to collect through the use of two independent collectors, then merge their result using supplied BiFunction.
A simple example showing the smallest whale (min) and largest whale (max) values of a list, in tons.
Code Example can be found here.
This method should be seen as a helper function which reduces verbosity. Increases code readibilty.
3 thoughts on “Java 12 – Teeing Collector”
Oh my goodness! Incredible article dude! Thanx!!
Today a reader，tomorrow a leader！
Where there is a will, there is a way.