linkedLists
Class SGenLinkedList<E>

java.lang.Object
  extended by linkedLists.SGenLinkedList<E>

public class SGenLinkedList<E>
extends java.lang.Object


Constructor Summary
SGenLinkedList()
          Default constructor that creates an empty list
 
Method Summary
 void addFirst(SNodeGen<E> n)
          add a new node at front of list
 SNodeGen<E> getHead()
          return the head of the list
 boolean isEmpty()
          is the list empty?
 void removeFirst()
          remove node from front of list
 void setHead(SNodeGen<E> n)
          set the head of the list
 java.lang.String toString()
          String representation of list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SGenLinkedList

public SGenLinkedList()
Default constructor that creates an empty list

Method Detail

getHead

public SNodeGen<E> getHead()
return the head of the list


setHead

public void setHead(SNodeGen<E> n)
set the head of the list


isEmpty

public boolean isEmpty()
is the list empty?


addFirst

public void addFirst(SNodeGen<E> n)
add a new node at front of list


removeFirst

public void removeFirst()
remove node from front of list


toString

public java.lang.String toString()
String representation of list

Overrides:
toString in class java.lang.Object