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.
Example
A simple example showing the smallest whale (min) and largest whale (max) values of a list, in tons.
Code Example can be found here.
Setup
Method
Output
Final Thoughts
This method should be seen as a helper function which reduces verbosity. Increases code readibilty.
Oh my goodness! Incredible article dude! Thanx!!
Today a reader,tomorrow a leader!
Where there is a will, there is a way.