2 summary::doubly linked list
3 categories:: Collections>Ordered
6 LinkedList implements a doubly linked list.
8 Most methods are inherited from the superclasses.
13 Add an item to the head of the list.
16 Add an item to the tail of the list.
19 Remove an item from the list.
22 Remove and return the last item in the list.
25 Remove and return the first item in the list.
28 Return the first item in the list.
31 Return the last item in the list.
34 Return the item at the given index in the list.
35 This requires a scan of the list and so is O(n).
38 Put the item at the given index in the list.
39 This requires a scan of the list and so is O(n).
42 Remove and return the item at the given index in the list.
43 This requires a scan of the list and so is O(n).