| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--weiss.nonstandard.LinkedList
Linked list implementation of the list using a header node. Access to the list is via LinkedListIterator.
LinkedListIterator| Constructor Summary | |
LinkedList()
Construct the list  | 
|
| Method Summary | |
 LinkedListIterator | 
find(java.lang.Object x)
Return iterator corresponding to the first node containing an item.  | 
 LinkedListIterator | 
findPrevious(java.lang.Object x)
Return iterator prior to the first node containing an item.  | 
 LinkedListIterator | 
first()
Return an iterator representing the first node in the list.  | 
 void | 
insert(java.lang.Object x,
       LinkedListIterator p)
Insert after p.  | 
 boolean | 
isEmpty()
Test if the list is logically empty.  | 
static int | 
listSize(LinkedList theList)
 | 
static void | 
main(java.lang.String[] args)
 | 
 void | 
makeEmpty()
Make the list logically empty.  | 
static void | 
printList(LinkedList theList)
 | 
 void | 
remove(java.lang.Object x)
Remove the first occurrence of an item.  | 
 LinkedListIterator | 
zeroth()
Return an iterator representing the header node.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public LinkedList()
| Method Detail | 
public boolean isEmpty()
public void makeEmpty()
public LinkedListIterator zeroth()
public LinkedListIterator first()
public void insert(java.lang.Object x,
                   LinkedListIterator p)
x - the item to insert.p - the position prior to the newly inserted item.public LinkedListIterator find(java.lang.Object x)
x - the item to search for.public LinkedListIterator findPrevious(java.lang.Object x)
x - the item to search for.public void remove(java.lang.Object x)
x - the item to remove.public static void printList(LinkedList theList)
public static int listSize(LinkedList theList)
public static void main(java.lang.String[] args)
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||