java stream and overload a method

后端 未结 0 1860
说谎
说谎 2020-11-27 21:53
abstract class A {}
class B extends A {}
class C extends A {}
List items = // objects of B,C types
items.stream.map(item -> build(item));
<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题