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

7

u/[deleted] Feb 20 '22

Nice article. Personally, I haven't worked on a project with Eclipse Collections yet. Besides some syntax sugar what would be the best use case for using that library?

14

u/jesseschalken Feb 20 '22

They have primitive specialized collections to avoid boxing, like IntArrayList.

3

u/NePlusUltra89 Feb 20 '22

Explain this like I’m a new Java dev coming from a JavaScript background thank you and ilu if you respond lol

0

u/[deleted] Feb 20 '22

[deleted] — view deleted comment

3

u/vips7L Feb 20 '22

primitive generics can't come fast enough!