randoop.util
Class ArrayListSimpleList<T>

Object
  extended by SimpleList<T>
      extended by ArrayListSimpleList<T>
All Implemented Interfaces:
Serializable

public class ArrayListSimpleList<T>
extends SimpleList<T>
implements Serializable

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 ArrayList<T> theList
           
 
Constructor Summary
Constructor and Description
ArrayListSimpleList()
           
ArrayListSimpleList(ArrayList<T> list)
           
ArrayListSimpleList(int capacity)
           
 
Method Summary
Modifier and Type Method and Description
 boolean add(T element)
           
 T get(int index)
           
 int size()
           
 List<T> toJDKList()
          Returns a java.util.List version of this list.
 String toString()
           
 
Methods inherited from class SimpleList
isEmpty
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

theList

public final ArrayList<T> theList
Constructor Detail

ArrayListSimpleList

public ArrayListSimpleList(ArrayList<T> list)

ArrayListSimpleList

public ArrayListSimpleList()

ArrayListSimpleList

public ArrayListSimpleList(int capacity)
Method Detail

size

public int size()
Specified by:
size in class SimpleList<T>

get

public T get(int index)
Specified by:
get in class SimpleList<T>

add

public boolean add(T element)

toJDKList

public List<T> toJDKList()
Description copied from class: SimpleList
Returns a java.util.List version of this list.

Specified by:
toJDKList in class SimpleList<T>

toString

public String toString()
Overrides:
toString in class Object