Package net.i2p.router.util
Class CachedIteratorArrayList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
net.i2p.router.util.CachedIteratorArrayList<E>
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<E>,Collection<E>,List<E>,RandomAccess
ArrayList that uses a single iterator. Useful to avoid object churn
while keeping the conveniences of an iterator.
- Since:
- 0.9.4 moved from net.i2p.util in 0.9.24
- Author:
- zab
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionCachedIteratorArrayList(int initialCapacity) CachedIteratorArrayList(Collection<? extends E> c) -
Method Summary
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Constructor Details
-
CachedIteratorArrayList
public CachedIteratorArrayList() -
CachedIteratorArrayList
-
CachedIteratorArrayList
public CachedIteratorArrayList(int initialCapacity)
-
-
Method Details