is it possible to pass a “ Java 8 Method Reference” object to a stream?

后端 未结 0 853
再見小時候
再見小時候 2020-12-09 06:09

I am looking to take a Method Reference i.e., Person::getAge and pass it as a parameter to use in a stream.

So instead of doing something along the lines

相关标签:
回答
  • 消灭零回复
提交回复
热议问题