Class ArrayStringList

All Implemented Interfaces:
StringList, Serializable, Cloneable, Iterable<String>, Collection<String>, List<String>, RandomAccess, DOMStringList

public class ArrayStringList extends ArrayList<String> implements StringList
Implementation of StringList based on ArrayList.
See Also:
  • Constructor Details

    • ArrayStringList

      public ArrayStringList()
      Constructs an empty list with a ArrayList's default initial capacity.
    • ArrayStringList

      public ArrayStringList(int initialCapacity)
      Constructs an empty list with the specified initial capacity.
      Parameters:
      initialCapacity - the initial capacity of the list.
      Throws:
      IllegalArgumentException - if the specified initial capacity is negative.
    • ArrayStringList

      public ArrayStringList(Collection<? extends String> c)
      Constructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator.
      Parameters:
      c - the collection whose elements are to be placed into this list.
      Throws:
      NullPointerException - if the specified collection is null.
  • Method Details