linkedLists
Class SNodeGen<E>

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

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

Node for a generic singly linked list


Constructor Summary
SNodeGen()
          Creates a node with null references to its element and next node
SNodeGen(E e, SNodeGen<E> n)
          Creates a node with the given element and next node
 
Method Summary
 E getElement()
           
 SNodeGen<E> getNext()
           
 void setElement(E e)
           
 void setNext(SNodeGen<E> n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SNodeGen

public SNodeGen()
Creates a node with null references to its element and next node


SNodeGen

public SNodeGen(E e,
                SNodeGen<E> n)
Creates a node with the given element and next node

Method Detail

getElement

public E getElement()

setElement

public void setElement(E e)

getNext

public SNodeGen<E> getNext()

setNext

public void setNext(SNodeGen<E> n)