|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object DListInt
Doubly linked lists of integers. The list is a reference on the cell containing the first element.
Constructor Summary | |
DListInt(int p)
Creates a cell containing p . |
|
DListInt(int p,
DListInt s)
Inserts p in front. |
Method Summary | |
DListInt |
insert(DListInt head)
Inserts the cell head in front of the list. |
DListInt |
remove(DListInt head)
Removes the cell head in front of the list
and returns it. |
java.lang.String |
toString()
Returns the list ended with a dot. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DListInt(int p)
p
.
public DListInt(int p, DListInt s)
p
in front.
Method Detail |
public DListInt insert(DListInt head)
head
in front of the list.
public DListInt remove(DListInt head)
head
in front of the list
and returns it.
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |