All Packages Class Hierarchy This Package Previous Next Index
Class key.LinkedList
java.lang.Object
|
+----key.LinkedList
- public class LinkedList
- extends Object
Implementation of a doubly linked list
-
LinkedList()
- creates the queue
-
append(Object)
- Adds another object to the queue
-
clear()
- Erase all elements in this list
-
contains(Object)
-
-
count()
- Returns the number of objects in the queue
-
elements()
-
-
finalize()
-
-
getElementAt(int)
-
-
getFirstElement()
-
-
getLastElement()
-
-
getTotalListElements()
-
-
getTotalLists()
-
-
input(String)
-
-
iterator()
-
-
main(String[])
-
-
prepend(Object)
- Adds another object to the queue
-
remove(Object)
- No action if o is not in the list
-
removeElementAt(int)
-
-
removeLinkedListElement(LinkedListElement)
-
LinkedList
public LinkedList()
- creates the queue
append
public final synchronized void append(Object store)
- Adds another object to the queue
- Parameters:
- store - the object to be added
prepend
public final synchronized void prepend(Object store)
- Adds another object to the queue
- Parameters:
- store - the object to be added
count
public final int count()
- Returns the number of objects in the queue
- Returns:
- the number of objects in the queue
getFirstElement
public final Object getFirstElement()
getLastElement
public final Object getLastElement()
elements
public final Enumeration elements()
contains
public final boolean contains(Object o)
getElementAt
public final Object getElementAt(int c)
removeLinkedListElement
protected final synchronized void removeLinkedListElement(LinkedListElement s)
removeElementAt
public final synchronized void removeElementAt(int c)
remove
public final synchronized void remove(Object o)
- No action if o is not in the list
clear
public final synchronized void clear()
- Erase all elements in this list
iterator
public final LinkedListIterator iterator()
main
public static void main(String args[])
input
public static String input(String prompt)
getTotalLists
public static int getTotalLists()
getTotalListElements
public static int getTotalListElements()
finalize
protected void finalize() throws Throwable
- Overrides:
- finalize in class Object
All Packages Class Hierarchy This Package Previous Next Index