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

public class CachedIteratorArrayList<E> extends ArrayList<E>
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:
  • Constructor Details

    • CachedIteratorArrayList

      public CachedIteratorArrayList()
    • CachedIteratorArrayList

      public CachedIteratorArrayList(Collection<? extends E> c)
    • CachedIteratorArrayList

      public CachedIteratorArrayList(int initialCapacity)
  • Method Details