All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class optionCalc.LinkList

java.lang.Object
   |
   +----optionCalc.LinkList

public class LinkList
extends Object

Constructor Index

 o LinkList()
Constructs a LinkList object, initially the list will be empty (head == null)

Method Index

 o Insert(KeyInterface)
Inserts a new node into the list with the key data if a node with equal key data does not already exist
 o printList()
Prints the LinkList Object

Constructors

 o LinkList
 public LinkList()
Constructs a LinkList object, initially the list will be empty (head == null)

Methods

 o Insert
 public Node Insert(KeyInterface k)
Inserts a new node into the list with the key data if a node with equal key data does not already exist

Parameters:
k - the (Key) data to insert
 o printList
 public void printList() throws LinkListException
Prints the LinkList Object

Throws: LinkListException
Thrown when the linked-list is empty.

All Packages  Class Hierarchy  This Package  Previous  Next  Index