Class ArrayListModel<T>

    • Constructor Detail

      • ArrayListModel

        public ArrayListModel()
        Default constructor
    • Method Detail

      • add

        public void add(T element,
                        int index)
        Add the given element to the model.
        Parameters:
        element - the element to add.
        index - the index where to insert.
      • addAll

        public void addAll(Collection<? extends T> insElements,
                           int index)
        Add the given elements to the model
        Parameters:
        insElements - the elements to add.
        index - the index where to insert.
      • remove

        public void remove(int index)
        Remove the element at the denoted index from the model.
        Parameters:
        index - the index of the element to remove.
      • getSize

        public int getSize()
      • getElementAt

        public T getElementAt(int index)