|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectweiss.nonstandard.LinkedList<AnyType>
weiss.nonstandard.SortedLinkedList<AnyType>
public class SortedLinkedList<AnyType extends java.lang.Comparable<? super AnyType>>
Linked list implementation of the list using a header node. Access to the list is via LinkedListIterator.
LinkedListIterator| Constructor Summary | |
|---|---|
SortedLinkedList()
|
|
| Method Summary | |
|---|---|
void |
insert(AnyType x)
Insert in sorted order. |
void |
insert(AnyType x,
LinkedListIterator<AnyType> p)
Insert after p. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class weiss.nonstandard.LinkedList |
|---|
find, findPrevious, first, isEmpty, listSize, makeEmpty, printList, remove, zeroth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SortedLinkedList()
| Method Detail |
|---|
public void insert(AnyType x,
LinkedListIterator<AnyType> p)
insert in class LinkedList<AnyType extends java.lang.Comparable<? super AnyType>>x - the item to insert.p - this parameter is ignored.public void insert(AnyType x)
x - the item to insert.public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||