|
LimeWire collection component api | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.limewire.collection.DoublyLinkedList.ListElement<E>
public static class DoublyLinkedList.ListElement<E>
Represents an immutable element of the linked list.
DoublyLinkedList dll = new DoublyLinkedList();
dll.addLast("Abby");
dll.addLast("Bob");
dll.addLast("Chris");
ListElement<String> dan = dll.addLast("Dan");
for(DoublyLinkedList.ListElement<String> e : dll)
System.out.println(e.getKey());
dll.remove(dan);
System.out.println("");
for(DoublyLinkedList.ListElement<String> e : dll)
System.out.println(e.getKey());
Output:
Abby
Bob
Chris
Dan
Abby
Bob
Chris
| Method Summary | |
|---|---|
E |
getKey()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public E getKey()
|
LimeWire collection component api | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||