C D G I L M S T

C

clone() - Method in class Dictionary
This method makes a copy of the dictionary and returns a reference to the user of the class.
clone() - Method in class SetElement
The clone() method, in this case, is not strictly needed (String is an immutable type and K and I are private) but is provided for easy expansion.
compareTo(Object) - Method in class SetElement
This method allows us to compare two (K,I) objects.

D

delete(SetElement) - Method in class Dictionary
This method deletes the ordered pair (K,I) represented by the parameter x.
Dictionary - class Dictionary.
This class implements the dictionary ADT using a singly linked list.
Dictionary() - Constructor for class Dictionary
The constructor initializes an empty dictionary.

G

getData() - Method in class SetElement
Return the Information portion I of the (K,I) pair.
getUniqueID() - Method in class SetElement
Return the unique part K of the (K,I) pair.

I

insert(SetElement) - Method in class Dictionary
This method inserts the new element x (or, replaces an existing one) in the dictionary.
isEmpty() - Method in class Dictionary
This method returns true if the dictionary is empty and false otherwise.

L

lookUp(SetElement) - Method in class Dictionary
This method searches the dictionary for the key K found in the parameter x.

M

main(String[]) - Static method in class Dictionary
Test drive the class Dictionary.
main(String[]) - Static method in class SetElement
 

S

setData(String) - Method in class SetElement
Set the Information portion I of the (K,I) pair.
SetElement - class SetElement.
This class allows the user to create set elements in the form of ordered pairs (K,I).
SetElement(String, String) - Constructor for class SetElement
Create a pair with two Strings.
setUniqueID(String) - Method in class SetElement
Set the unique part K of the (K,I) pair.

T

toString() - Method in class Dictionary
This method returns a Java String representing the current state of the dictionary object.
toString() - Method in class SetElement
The method toString converts the pair (K,I) to a String.

C D G I L M S T