How to partition a list by predicate using java8?
Like it was explained in @RealSkeptic comment Predicate can return only two results: true and false. This means you would be able to split your data only in two groups. What you need is some kind of Function which will allow you to determine some common result for elements which should be grouped together. In … Read more