Rule2: Prefer method references over Lambdas
Note: Order of conciseness/succientness of code –> anonymousclass::new
Array Constructor… Usage – int[]::new
where to use(By Acts):
Sometimes, a lambda expression does nothing but calls an existing method. In those cases, it’s often clearer to refer to the existing method by name. Method references enable you to do this; they are compact, easy-to-read lambda expressions for methods that already have a name.
In summary, method references often provide a more succinct alternative to lambdas. Where method references are shorter and clearer, use them; where they aren’t, stick with lambdas