Package randoop.util

Class SimpleArrayList<E>

    • Constructor Detail

      • SimpleArrayList

        public SimpleArrayList​(Collection<? extends E> c)
      • SimpleArrayList

        public SimpleArrayList()
      • SimpleArrayList

        public SimpleArrayList​(int initialCapacity)
    • Method Detail

      • getSublist

        public SimpleList<E> getSublist​(int index)
        Description copied from interface: SimpleList
        Return a sublist of this list that contains the index. Does not necessarily contain the first element.

        The result is always an existing SimpleList, the smallest one that contains the index. Currently, it is always a SimpleArrayList.

        Specified by:
        getSublist in interface SimpleList<E>
        Parameters:
        index - the index into this list
        Returns:
        the sublist containing this index
      • toJDKList

        public List<E> toJDKList()
        Description copied from interface: SimpleList
        Returns a java.util.List version of this list. Caution: this operation can be expensive.
        Specified by:
        toJDKList in interface SimpleList<E>
        Returns:
        List for this list