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
-
LinkedList()
-
-
append(Linkable)
- Appends a Linkable to this list.
-
count()
- Counts the number of elements in the list.
-
isEmpty()
- Check whether list is empty.
-
remove(Linkable)
- Removes a Linkable from this list.
LinkedList
public LinkedList()
isEmpty
public boolean isEmpty()
- Check whether list is empty.
- Returns:
- true if list is empty
count
public int count()
- Counts the number of elements in the list.
- Returns:
- number of elements in the list.
append
public void append(Linkable l)
- Appends a Linkable to this list.
- Parameters:
- l - A Linkable to be appended.
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