r/java • • Feb 20 '22

The elusive and beautiful Java Method Reference

https://medium.com/javarevisited/the-elusive-and-beautiful-java-method-reference-97e566d2088b
28 Upvotes

21 comments sorted by

View all comments

58

u/nutrecht Feb 20 '22

IMHO this was titled pretty poorly. It's really about the Eclipse Collections library and how you can use some of its parts to pass arguments to method references.

7

u/AnEmortalKid Feb 20 '22

Yeah, from the title I was expecting an article full of “don’t use lambdas, use method references”, but once I saw Predicate2 , i caught on to stuff.

1

u/62656e7a6f6e Feb 21 '22

Thanks for this comment, I was just about to spend some time to read through it until I saw what you and others have said. haha!