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 -
  1. sort - Sort the list
  2. limit - Fetch only N numbers from the list
  3. distinct - Remove duplicates from the list
  4. forEach - Print the list

Comments

Popular posts from this blog

Spring | Using TIBCO EMS with Spring framework

TIBCO | For Loop - Accumulate output

TIBCO | JNDI Server & JMS Instance creation