Java 8 | Writing custom Stream API using builder pattern
In this post we are going to create simple Java 8 Stream API using builder pattern. Check builder pattern post here.
API will provide below four methods -
- sort - Sort the list
- limit - Fetch only N numbers from the list
- distinct - Remove duplicates from the list
- forEach - Print the list
Comments
Post a Comment