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


Constructor Index

 o LinkedList()
creates the queue

Method Index

 o append(Object)
Adds another object to the queue
 o clear()
Erase all elements in this list
 o contains(Object)
 o count()
Returns the number of objects in the queue
 o elements()
 o finalize()
 o getElementAt(int)
 o getFirstElement()
 o getLastElement()
 o getTotalListElements()
 o getTotalLists()
 o input(String)
 o iterator()
 o main(String[])
 o prepend(Object)
Adds another object to the queue
 o remove(Object)
No action if o is not in the list
 o removeElementAt(int)
 o removeLinkedListElement(LinkedListElement)

Constructors

 o LinkedList
 public LinkedList()
creates the queue

Methods

 o append
 public final synchronized void append(Object store)
Adds another object to the queue

Parameters:
store - the object to be added
 o prepend
 public final synchronized void prepend(Object store)
Adds another object to the queue

Parameters:
store - the object to be added
 o count
 public final int count()
Returns the number of objects in the queue

Returns:
the number of objects in the queue
 o getFirstElement
 public final Object getFirstElement()
 o getLastElement
 public final Object getLastElement()
 o elements
 public final Enumeration elements()
 o contains
 public final boolean contains(Object o)
 o getElementAt
 public final Object getElementAt(int c)
 o removeLinkedListElement
 protected final synchronized void removeLinkedListElement(LinkedListElement s)
 o removeElementAt
 public final synchronized void removeElementAt(int c)
 o remove
 public final synchronized void remove(Object o)
No action if o is not in the list

 o clear
 public final synchronized void clear()
Erase all elements in this list

 o iterator
 public final LinkedListIterator iterator()
 o main
 public static void main(String args[])
 o input
 public static String input(String prompt)
 o getTotalLists
 public static int getTotalLists()
 o getTotalListElements
 public static int getTotalListElements()
 o finalize
 protected void finalize() throws Throwable
Overrides:
finalize in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index