【发布时间】:2013-07-24 07:19:36
【问题描述】:
当我使用.putAll() 时,另一个.putAll() 会覆盖地图的内容吗?
我的地图会包含 SomeOfMyObjects 和 SomeOfMyObjects 吗?
Map<MyObject> blah = new HashMap<>();
blah.putAll('SomeOfMyObjects')
blah.putAll('SomeOfMyObjects')
谢谢!
【问题讨论】:
-
试试看你就知道了。这比任何可能的答案都要好。
-
没错,我需要在我的测试中涵盖它!