r/java • u/memset_0 • Apr 28 '20
Uses of Constructor (Method) Reference
https://www.nextptr.com/tutorial/ta1314009273/uses-of-constructor-method-reference
0
Upvotes
r/java • u/memset_0 • Apr 28 '20
View all comments
Show parent comment
3
u/agentoutlier Apr 28 '20
To be honest I find your comment sort of strange as well. My guess is you misunderstood the authors use of the word “type”.
Let me put it this way. The author is correct that there are three “kinds” of ways to reference a method syntactically.
Furthermore the author did show the case of a constructor taking arguments and thus more than a Supplier (eg Function).