| java.lang.Object seda.sandStorm.core.ssLinkedList
ssLinkedList | public class ssLinkedList (Code) | | 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.
author: Steve Gribble |
ssLinkedList | public ssLinkedList()(Code) | | Allocates a brand new ssLinkedList
|
add_to_head | public void add_to_head(Object o)(Code) | | Adds an object to the head (start) of the linked list.
Parameters: o - the object to add |
add_to_tail | public void add_to_tail(Object o)(Code) | | Adds an object to the tail (end) of the linked list.
Parameters: o - the object to add |
elements | public java.util.Enumeration elements()(Code) | | Returns a java.util.Enumeration enumeration over the elements of the
linked list. If you modify the list while enumerating over it,
you get what you deserve (i.e. undefined behaviour).
the enumeration over the elements See Also: java.util.Enumeration |
get_comparator | public Object get_comparator(Object known, ssLinkedListComparator llc)(Code) | | Gets the first object to match according to the comparator
function.
the matching object, or null if there is nothing that matches. |
get_head | public Object get_head()(Code) | | Gets the head object from the linked list.
the head, or null if there is nothing in the list. |
get_item | public Object get_item(Object known)(Code) | | Returns the first object that is "equal" to the given object,
based on the response of the Object.equals() method.
|
get_tail | public Object get_tail()(Code) | | Gets the tail object from the linked list.
the tail, or null if there is nothing in the list. |
remove_all | public void remove_all()(Code) | | |
remove_comparator | public Object remove_comparator(Object known, ssLinkedListComparator llc)(Code) | | Removes the first object to match according to the comparator function,
and returns it.
the match, or null if there is nothing that matches. |
remove_head | public Object remove_head()(Code) | | Removes the head object from the linked list, and returns it.
the head, or null if there is nothing in the list. |
remove_item | public Object remove_item(Object known)(Code) | | Removes the first object that is "equal" to the given object,
based on the response of the Object.equals() method.
|
remove_tail | public Object remove_tail()(Code) | | Removes the tail object from the linked list, and returns it.
the tail, or null if there is nothing in the list. |
size | public int size()(Code) | | Returns the number of elements in the list
number of elements in the list |
toString | public String toString()(Code) | | Return a string representation, for debugging purposes
|
|
|