Namespace EasyXLS.Util

Class List

System.Object
System.Collections.ArrayList
EasyXLS.Util.List
System.Collections.ArrayList
EasyXLS.Util.List

public class List extends System.Collections.ArrayList
This class simulates a list of objects.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an empty list.
    List​(int size)
    Creates an empty list that has the specified initial capacity.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addElement​(System.Object value)
    Adds a new element to the list.
    void
    Removes all the elements from this list
    Creates a clone of this list
    System.Object
    elementAt​(int index)
    Returns the element from the specified index
    void
    insertElementAt​(System.Object value, int index)
    Inserts a new element at the specified index.
    void
    removeElementAt​(int index)
    Removes from the list the element at the specified position
    void
    setCapacity​(int capacity)
    Increases the capacity of this list, if necessary, to ensure that it can hold at least the number of components specified by the minimum capacity argument.
    void
    setElementAt​(System.Object value, int index)
    Sets the element at the specified index to be the specified object The previous element at that position is discarded
    int
    Returns the number of elements in this list

    Methods inherited from class System.Collections.ArrayList

    add, add, addAll, addAll, capacity, clone, contains, containsAll, copyInto, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeIf, replaceAll, retainAll, set, setSize, sort, spliterator, subList, toArray, toArray, toString, trimToSize

    Methods inherited from class System.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Collection

    parallelStream, stream, toArray
  • Constructor Details

    • List

      public List()
      Creates an empty list.
    • List

      public List(int size)
      Creates an empty list that has the specified initial capacity.
      Parameters:
      size - the initial capacity
  • Method Details