paint-brush
What Makes The Teeing Method In The Java API So Coolby@nfrankel

What Makes The Teeing Method In The Java API So Cool

by Nicolas Fränkel3mMay 20th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Last week, I described a use-case for a custom Stream-type collector. I received a intriguing comment on Twitter that revealed a method I didn’t know. I decided to investigate what is the                teeeing() method about. The method is a composite of two downstream collectors. Every element passed to the resulting collector is processed by both downstream collectors, then their results are merged using the specified merge function into the final result. The complete source code for this post can be found on Github in Maven format.

Company Mentioned

Mention Thumbnail
featured image - What Makes The Teeing Method In The Java API So Cool
Nicolas Fränkel HackerNoon profile picture
Nicolas Fränkel

Nicolas Fränkel

@nfrankel

Developer Advocate for Apache APISIX *** Learner *** Author of http://leanpub.com/integrationtest

About @nfrankel
LEARN MORE ABOUT @NFRANKEL'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Nicolas Fränkel HackerNoon profile picture
Nicolas Fränkel@nfrankel
Developer Advocate for Apache APISIX *** Learner *** Author of http://leanpub.com/integrationtest

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite