|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ListStack.Cell
Cell models one cell used to assemble a linked list.
Constructor Summary | |
Cell(java.lang.Object value,
Cell link)
Constructor Cell builds a new cell |
Method Summary | |
Cell |
getNext()
getNext returns the address of the cell chained to this one |
java.lang.Object |
getVal()
getVal returns the value held in the cell |
void |
setNext(Cell link)
setNext resets the address of the cell chained to this one |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Cell(java.lang.Object value, Cell link)
value
- - the value inserted in the celllink
- - the cell that is chained to this new cellMethod Detail |
public java.lang.Object getVal()
public Cell getNext()
public void setNext(Cell link)
link
- - the address of the Cell that is chained to this one
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |