Class IntArrayList

All Implemented Interfaces:
Cloneable, Iterable, Collection, List

public class IntArrayList extends AbstractList implements Cloneable
An ArrayList based upon int members. Not quite a real implementation of a modifiable list as I don't do, for example, add(index,element). TODO: unused?
  • Field Details

    • DEFAULT_CAPACITY

      private static final int DEFAULT_CAPACITY
      See Also:
    • n

      protected int n
    • elements

      protected int[] elements
  • Constructor Details

    • IntArrayList

      public IntArrayList()
    • IntArrayList

      public IntArrayList(int initialCapacity)
  • Method Details