All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class nodeos.LinkedList

java.lang.Object
   |
   +----nodeos.LinkedList

public class LinkedList
extends Object
A simple doubly linked list implementation.

This is really straightforward.

See Also:
Linkable

Constructor Index

 o LinkedList()

Method Index

 o append(Linkable)
Appends a Linkable to this list.
 o count()
Counts the number of elements in the list.
 o isEmpty()
Check whether list is empty.
 o remove(Linkable)
Removes a Linkable from this list.

Constructors

 o LinkedList
 public LinkedList()

Methods

 o isEmpty
 public boolean isEmpty()
Check whether list is empty.

Returns:
true if list is empty
 o count
 public int count()
Counts the number of elements in the list.

Returns:
number of elements in the list.
 o append
 public void append(Linkable l)
Appends a Linkable to this list.

Parameters:
l - A Linkable to be appended.
 o remove
 public void remove(Linkable l)
Removes a Linkable from this list.

Parameters:
l - Linkable to be removed.

All Packages  Class Hierarchy  This Package  Previous  Next  Index