Class ResizeableArrayList

All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess, SequencedCollection

public class ResizeableArrayList extends ArrayList implements List, Cloneable, Serializable
ResizableArrayList is the same as ArrayList except that ensureSize not only increases the size of the array (super.ensureCapacity), but it also fills the empty space with null. This way, the size method will return the length of the array and not just the number of elements in it. I guess.
See Also:
  • Constructor Details

    • ResizeableArrayList

      public ResizeableArrayList(int initialCapacity)
      This constructor is no longer supported in JDK1.2 public ResizeableArrayList(int initialCapacity, int capacityIncrement) { super(initialCapacity, capacityIncrement); }
    • ResizeableArrayList

      public ResizeableArrayList()
    • ResizeableArrayList

      public ResizeableArrayList(Collection c)
  • Method Details

    • ensureSize

      public void ensureSize(int size)
    • clone

      public Object clone()
      Overrides:
      clone in class ArrayList