Method Summary |
|
public LinkedListNode | addFirst(LinkedListNode node) Adds a node to the beginning of the list. |
public LinkedListNode | addFirst(Object object) Adds an object to the beginning of the list by automatically creating a
a new node and adding it to the beginning of the list.
Parameters: object - the object to add to the beginning of the list. |
public LinkedListNode | addLast(Object object) Adds an object to the end of the list by automatically creating a
a new node and adding it to the end of the list.
Parameters: object - the object to add to the end of the list. |
public void | clear() Erases all elements in the list and re-initializes it. |
public LinkedListNode | getFirst() Returns the first linked list node in the list. |
public LinkedListNode | getLast() Returns the last linked list node in the list. |
public String | toString() Returns a String representation of the linked list with a comma
delimited list of all the elements in the list. |