摘要: 1.Fail-Fast使用 protected transient int modCount = 0; 支持,modCount记录容器结构化修改次数。在操作的前后判断modCount是否改变,若改变则认为序列化或者使用迭代其期间容器被结构化修改,则抛出异常。 2.HashMap中使用的技巧: 求ha 阅读全文
posted @ 2018-12-10 16:56 、、、、、、、 阅读(1944) 评论(0) 推荐(0) 编辑