摘要:
非线程安全;基于对象数组; get(int index)不需要遍历数组,速度快; iterator()方法中调用了get(int index),所以速度也快 set(int index, E e)不需要遍历数组,速度快 add方法需要考虑扩容与数组复制问题,速度慢 remove(Object o)需 阅读全文
摘要:
非线程安全;基于对象数组; get(int index)不需要遍历数组,速度快; iterator()方法中调用了get(int index),所以速度也快 set(int index, E e)不需要遍历数组,速度快 add方法需要考虑扩容与数组复制问题,速度慢 remove(Object o)需 阅读全文
|