randoop.util
Class OneMoreElementList<T>

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

public final class OneMoreElementList<T>
extends SimpleList<T>
implements Serializable

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 T lastElement
           
 SimpleList<T> list
           
 int size
           
 
Constructor Summary
Constructor and Description
OneMoreElementList(SimpleList<T> list, T extraElement)
           
 
Method Summary
Modifier and Type Method and Description
 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

lastElement

public final T lastElement

list

public final SimpleList<T> list

size

public final int size
Constructor Detail

OneMoreElementList

public OneMoreElementList(SimpleList<T> list,
                          T extraElement)
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>

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