Package moa.core

Class FastVector<E>

    • Constructor Detail

      • FastVector

        public FastVector()
    • Method Detail

      • addElement

        public final void addElement​(E element)
        Adds an element to this vector. Increases its capacity if its not large enough.
        Parameters:
        element - the element to add
      • elementAt

        public final E elementAt​(int index)
        Returns the element at the given position.
        Parameters:
        index - the element's index
        Returns:
        the element with the given index
      • removeElementAt

        public final void removeElementAt​(int index)
        Deletes an element from this vector.
        Parameters:
        index - the index of the element to be deleted