该文被密码保护。 阅读全文
posted @ 2014-01-23 18:28 coreWars 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-01-23 18:26 coreWars 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-01-23 18:23 coreWars 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-01-23 11:48 coreWars 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 有时候,我们希望一个集合只能读,不能写。像.NET语言就提供了只读的集合,可惜Java中却没有。 还好集合工具类Collections为我们提供了静态工厂方法来生成只读集合,包括Collection,List,Map,Set,SortedMap和SortedSet,下面给出了各自的方法签名。Collection unmodifiableCollection(Collection collection)List unmodifiableList(List list)Map unmodifiableMap(Map map)Set unmodifiableSet(Set set)SortedMa.. 阅读全文
posted @ 2014-01-23 10:28 coreWars 阅读(426) 评论(0) 推荐(0) 编辑