|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectlinkedLists.SGenLinkedList<E>
public class SGenLinkedList<E>
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 |
---|
public SGenLinkedList()
Method Detail |
---|
public SNodeGen<E> getHead()
public void setHead(SNodeGen<E> n)
public boolean isEmpty()
public void addFirst(SNodeGen<E> n)
public void removeFirst()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |