2018年3月11日

摘要: 在父类AbstractList中定义了一个int型的属性:modCount,记录了ArrayList结构性变化的次数。 protected transient int modCount = 0; 在ArrayList的所有涉及结构变化的方法中都增加modCount的值,包括:add()、remove 阅读全文

posted @ 2018-03-11 15:50 林浩开发小屋 阅读(304) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3