Package moa.core

Class AutoExpandVector<T>

    • Constructor Detail

      • AutoExpandVector

        public AutoExpandVector()
      • AutoExpandVector

        public AutoExpandVector​(int size)
    • Method Detail

      • add

        public void add​(int pos,
                        T obj)
        Specified by:
        add in interface List<T>
        Overrides:
        add in class ArrayList<T>
      • get

        public T get​(int pos)
        Specified by:
        get in interface List<T>
        Overrides:
        get in class ArrayList<T>
      • set

        public T set​(int pos,
                     T obj)
        Specified by:
        set in interface List<T>
        Overrides:
        set in class ArrayList<T>
      • removeRange

        protected void removeRange​(int arg0,
                                   int arg1)
        Overrides:
        removeRange in class ArrayList<T>
      • copy

        public MOAObject copy()
        Description copied from interface: MOAObject
        This method produces a copy of this object.
        Specified by:
        copy in interface MOAObject
        Returns:
        a copy of this object
      • measureByteSize

        public int measureByteSize()
        Description copied from interface: MOAObject
        Gets the memory size of this object.
        Specified by:
        measureByteSize in interface MOAObject
        Returns:
        the memory size of this object
      • getDescription

        public void getDescription​(StringBuilder sb,
                                   int indent)
        Description copied from interface: MOAObject
        Returns a string representation of this object. Used in AbstractMOAObject.toString to give a string representation of the object.
        Specified by:
        getDescription in interface MOAObject
        Parameters:
        sb - the stringbuilder to add the description
        indent - the number of characters to indent