|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectlinkedLists.SNodeGen<E>
public class SNodeGen<E>
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 |
---|
public SNodeGen()
public SNodeGen(E e, SNodeGen<E> n)
Method Detail |
---|
public E getElement()
public void setElement(E e)
public SNodeGen<E> getNext()
public void setNext(SNodeGen<E> n)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |