stresstests.datasets
Class ConsList<T>

java.lang.Object
  extended by stresstests.datasets.AList<T>
      extended by stresstests.datasets.ConsList<T>

public class ConsList<T>
extends AList<T>

Nonempty list of T class ConsList 20 November 2007

Author:
Viera K. Proulx

Field Summary
 T first
          the first item in the list
 AList<T> rest
          the rest of the list
 
Constructor Summary
ConsList(T s, AList<T> r)
          The full constructor
 
Method Summary
static void main(java.lang.String[] argv)
          Self Test
 java.lang.String toString()
          Print all member data values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

first

public T first
the first item in the list


rest

public AList<T> rest
the rest of the list

Constructor Detail

ConsList

public ConsList(T s,
                AList<T> r)
The full constructor

Method Detail

toString

public java.lang.String toString()
Print all member data values.

Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] argv)
Self Test