我可以使用哪些情况Collections.emptyMap()?文档说如果我希望我的集合是不可变的,我可以使用这个方法.
Collections.emptyMap()
为什么我想要一个不可变的空集合?有什么意义?
java collections
collections ×1
java ×1