|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
delete(PizzaData keyToDelete)
The Delete method is called when an item from the linked list is to be deleted. |
boolean |
empty()
This function should return true if the list is empty, false otherwise. |
PizzaData |
getCurrentData()
This function returns the current data element of the linked list. |
void |
insert(PizzaData data)
The Insert method is called on a linked list when an item has to be inserted. |
void |
next()
This method is used to set the current node reference to refer to the node after it. |
void |
prev()
This method is used to set the current node reference to refer to the node preceding it. |
PizzaData |
search(PizzaData keyToFind)
The Search method is used to find a particular entry in the linked list. |
Method Detail |
public void insert(PizzaData data)
data
- - The data item to insert.public void delete(PizzaData keyToDelete)
keyToDelete
- - The dummy data item representing the data to delete.public PizzaData search(PizzaData keyToFind)
keyToFind
- - The dummy data item used to find the desired one.
public void prev()
public void next()
public boolean empty()
public PizzaData getCurrentData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |