Get class constructor by functional interface method signature

前端 未结 0 1570
日久生厌
日久生厌 2021-01-21 20:23

I know i can use constructor reference as hihger-order method\'s argument like this:

collection.stream().map(MyClass::new         


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