|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectseda.sandStorm.core.ssLinkedList
public class ssLinkedList
The ssLinkedList class is just that - a linked list abstraction that supports very efficient insertion and deletion, as well as an Enumeration interface. None of the methods in this linked list are synchronized. If you want synchronization, do it yourself.
Nested Class Summary | |
---|---|
class |
ssLinkedList.ssLinkedListEnumeration
A ssLinkedListEnumeration is a java.util.Enumeration over the ssLinkedList elements. |
Constructor Summary | |
---|---|
ssLinkedList()
Allocates a brand new ssLinkedList |
Method Summary | |
---|---|
void |
add_to_head(java.lang.Object o)
Adds an object to the head (start) of the linked list. |
void |
add_to_tail(java.lang.Object o)
Adds an object to the tail (end) of the linked list. |
java.util.Enumeration |
elements()
Returns a java.util.Enumeration enumeration over the elements of the linked list. |
java.lang.Object |
get_comparator(java.lang.Object known,
ssLinkedListComparator llc)
Gets the first object to match according to the comparator function. |
java.lang.Object |
get_head()
Gets the head object from the linked list. |
java.lang.Object |
get_item(java.lang.Object known)
Returns the first object that is "equal" to the given object, based on the response of the Object.equals() method. |
java.lang.Object |
get_tail()
Gets the tail object from the linked list. |
static void |
main(java.lang.String[] args)
|
void |
remove_all()
|
java.lang.Object |
remove_comparator(java.lang.Object known,
ssLinkedListComparator llc)
Removes the first object to match according to the comparator function, and returns it. |
java.lang.Object |
remove_head()
Removes the head object from the linked list, and returns it. |
java.lang.Object |
remove_item(java.lang.Object known)
Removes the first object that is "equal" to the given object, based on the response of the Object.equals() method. |
java.lang.Object |
remove_tail()
Removes the tail object from the linked list, and returns it. |
int |
size()
Returns the number of elements in the list |
java.lang.String |
toString()
Return a string representation, for debugging purposes |
java.lang.String |
toString(java.lang.String prefix)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ssLinkedList()
Method Detail |
---|
public int size()
public void add_to_tail(java.lang.Object o)
o
- the object to addpublic java.lang.Object get_tail()
public java.lang.Object remove_tail()
public void add_to_head(java.lang.Object o)
o
- the object to addpublic java.lang.Object get_head()
public java.lang.Object remove_head()
public void remove_all()
public java.lang.Object get_comparator(java.lang.Object known, ssLinkedListComparator llc)
public java.lang.Object remove_comparator(java.lang.Object known, ssLinkedListComparator llc)
public java.lang.Object get_item(java.lang.Object known)
public java.lang.Object remove_item(java.lang.Object known)
public java.util.Enumeration elements()
Enumeration
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String prefix)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |