|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.util.LinkedList
public class LinkedList
Simple LinkedList implementation. The main feature is that list nodes are public, which allows very fast delete operations when one has a reference to the node that is to be deleted.
Constructor Summary | |
---|---|
LinkedList()
Creates a new linked list. |
Method Summary | |
---|---|
LinkedListNode |
addFirst(LinkedListNode node)
Adds a node to the beginning of the list. |
LinkedListNode |
addFirst(java.lang.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. |
LinkedListNode |
addLast(java.lang.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. |
void |
clear()
Erases all elements in the list and re-initializes it. |
LinkedListNode |
getFirst()
Returns the first linked list node in the list. |
LinkedListNode |
getLast()
Returns the last linked list node in the list. |
java.lang.String |
toString()
Returns a String representation of the linked list with a comma delimited list of all the elements in the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LinkedList()
Method Detail |
---|
public LinkedListNode getFirst()
public LinkedListNode getLast()
public LinkedListNode addFirst(LinkedListNode node)
node
- the node to add to the beginning of the list.public LinkedListNode addFirst(java.lang.Object object)
object
- the object to add to the beginning of the list.
public LinkedListNode addLast(java.lang.Object object)
object
- the object to add to the end of the list.
public void clear()
public java.lang.String toString()
toString
in class java.lang.Object
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |