Converting an Optional to a List

后端 未结 0 708
悲&欢浪女
悲&欢浪女 2020-12-15 20:00

I want to collect an Optional into a List, so that I end up with a list with a single element, if the optional is present or an empty list if not.<

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