A C G I L M N S T

A

addFirst(Comparable) - Method in class LinkedList
Inserts a Comparable item at the beginning of the list

C

compareTo(Object) - Method in class Node
Compares value of Node to the parameter and returns: -1 if the Node is less than the parameter, 0 if the Node is equal to the parameter, and 1 if the Node is greater than the parameter
compareTo(Object) - Method in class Tree
This compares two trees based on their overall value to the buyer

G

getData() - Method in class Node
Returns reference to the data value of the object
getHeightInFeet() - Method in class Tree
This is returns the recorded hieght of the Tree in whole feet
getNext() - Method in class Node
Returns reference to the next Node
getPriceInDollarsAndCents() - Method in class Tree
This is returns the selling price of the Tree
getQualityFrom1Through10() - Method in class Tree
This is returns the quality of the Tree
getValue() - Method in class Tree
This calculate the "value" of the Tree to the buyer.

I

isEmpty() - Method in class LinkedList
Tests list to see if it is empty

L

LinkedList - class LinkedList.
Class LinkedList A minimal LinkedList class composed of Node objects for 15-111/200 Mastery Exam/Fall 2002 You need to add a method to this class as described in the instructions.
LinkedList() - Constructor for class LinkedList
Default constructor: sets head to null, count to 0

M

main(String[]) - Static method in class TreeInventory
This is the test program.

N

Node - class Node.
A object of the class, Node has an object that contains a reference to an object of type Comparable and a reference to another Node.
Node(Comparable) - Constructor for class Node
Constructor builds the Node with the supplied parameter
Node(Comparable, Node) - Constructor for class Node
Constructor builds the Node with the supplied parameters

S

setNext(Node) - Method in class Node
Sets the next reference of this object to the paramter object
size() - Method in class LinkedList
Returns the number of nodes in the list

T

toString() - Method in class LinkedList
Returns a string representation of the list
toString() - Method in class Node
Returns string representation of the object
toString() - Method in class Tree
Returns a String representation of a Tree including all fields
Tree - class Tree.
Class Tree This class define the Tree objects used within the 15-111/200 Mastery Exam/Fall 2002 Students are not permitted to modify or augment this class in any way.
Tree(int, double, int) - Constructor for class Tree
This is the constructor of a Tree.
TreeInventory - class TreeInventory.
 
TreeInventory(String) - Constructor for class TreeInventory
The constructor.

A C G I L M N S T