|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectHTTPClient.LinkedList
This class implements a singly linked list.
| Constructor Summary | |
(package private) |
LinkedList()
|
| Method Summary | |
void |
addToEnd(Object elem)
Add the specified element to the end of the list. |
void |
addToHead(Object elem)
Add the specified element to the head of the list. |
Object |
enumerate()
Starts an enumeration of all the elements in this list. |
Object |
getFirst()
Return the first element in the list. |
static void |
main(String[] args)
|
Object |
next()
Gets the next element in the enumeration. |
void |
remove(Object elem)
Remove the specified element from the list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
LinkedList()
| Method Detail |
public void addToHead(Object elem)
elem - the object to add to the list.public void addToEnd(Object elem)
elem - the object to add to the list.public void remove(Object elem)
elem - the object to remove from the list.public Object getFirst()
public Object enumerate()
public Object next()
enumerate().
enumerate()
public static void main(String[] args)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||