dev4devs.com
Java 8 : How to stop a foreach process when you are using Streams ?
For do this you can use : anyMatch(conditional) The anyMatch will make the interaction until take a conditional return equals true. I will put here a good example. Full Example: private Map