| CS 1371 Dept. Presents: |
Class LinkedList
| Method Summary | |
|---|---|
| LinkedList ( list ) Constructor that creates a LinkedList object from a list |
|
The string representation of the LinkedList object |
|
| display ( )
Command window display of a LinkedList object |
|
| addInOrder ( ll, data )
Adds data in order in a LinkedList object |
|
|
addToHead ( ll, data ) Adds data to the head of a LinkedList object |
|
|
addToTail ( ll, data ) Adds data to the tail of a a LinkedList object |
|
| append ( ll, data) Appends data to a LinkedList object |
|
|
count ( ) Counts the number of items in the LinkedList object |
|
| filter ( ) Filter the list by removing all items returning false from their keep method |
|
| find ( ) Find an item on a list |
|
| getHead ( ) Gets the head of the LinkedList |
|
| isEmpty ( )
Checks the LinkedList whether it is empty |
|
| peek ( ) Peeks at the head of the list |
|
| removeFromHead ( ) Removes data from the head of a LinkedList object |
|
| setHead ( )
Sets the head of a LinkedList object |
|
| sum ( ) Total the items in a list |
|
| Method Detail |
|---|
ll = LinkedList(list) creates a LinkedList object